From d45369d5f031d0f14e799db6c41aa7ceba519308 Mon Sep 17 00:00:00 2001 From: ippachi Date: Mon, 16 Dec 2024 18:55:23 +0900 Subject: [PATCH] Fix NoMethodError when run js:routes:typescript (#327) ActiveSupport::Deprecation.warn was removed from Rails 7.2. --- lib/tasks/js_routes.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/js_routes.rake b/lib/tasks/js_routes.rake index 5b901eb..39054ff 100644 --- a/lib/tasks/js_routes.rake +++ b/lib/tasks/js_routes.rake @@ -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