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