Skip to content

Commit d45369d

Browse files
authored
Fix NoMethodError when run js:routes:typescript (#327)
ActiveSupport::Deprecation.warn was removed from Rails 7.2.
1 parent c0794a5 commit d45369d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/js_routes.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace :js do
88
namespace :routes do
99
desc "Make a js file with all rails route URL helpers and typescript definitions for them"
1010
task typescript: "js:routes" do
11-
ActiveSupport::Deprecation.warn(
11+
ActiveSupport::Deprecation.new.warn(
1212
"`js:routes:typescript` task is deprecated. Please use `js:routes` instead."
1313
)
1414
end

0 commit comments

Comments
 (0)