Skip to content

Commit

Permalink
Fix NoMethodError when run js:routes:typescript (#327)
Browse files Browse the repository at this point in the history
ActiveSupport::Deprecation.warn was removed from Rails 7.2.
  • Loading branch information
ippachi authored Dec 16, 2024
1 parent c0794a5 commit d45369d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/js_routes.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace :js do
namespace :routes do
desc "Make a js file with all rails route URL helpers and typescript definitions for them"
task typescript: "js:routes" do
ActiveSupport::Deprecation.warn(
ActiveSupport::Deprecation.new.warn(
"`js:routes:typescript` task is deprecated. Please use `js:routes` instead."
)
end
Expand Down

0 comments on commit d45369d

Please sign in to comment.