Skip to content

Commit

Permalink
Fix deprecation warning in Rails 8.0
Browse files Browse the repository at this point in the history
Use the keyword argument `at:` instead of the positional argument
for mounting the assets in the Rails application.
  • Loading branch information
rafaelfranca committed Jul 31, 2024
1 parent aa0cf7c commit eaba64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def self.build_manifest(app)
if config.assets.compile
app.assets = self.build_environment(app, true)
app.routes.prepend do
mount app.assets => config.assets.prefix
mount app.assets, at: config.assets.prefix
end
end

Expand Down

0 comments on commit eaba64d

Please sign in to comment.