Skip to content

Commit eaba64d

Browse files
committed
Fix deprecation warning in Rails 8.0
Use the keyword argument `at:` instead of the positional argument for mounting the assets in the Rails application.
1 parent aa0cf7c commit eaba64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def self.build_manifest(app)
222222
if config.assets.compile
223223
app.assets = self.build_environment(app, true)
224224
app.routes.prepend do
225-
mount app.assets => config.assets.prefix
225+
mount app.assets, at: config.assets.prefix
226226
end
227227
end
228228

0 commit comments

Comments
 (0)