Skip to content

Commit

Permalink
Rewrite mount engine syntax
Browse files Browse the repository at this point in the history
To disable deprecation warning since Rails 8.0.

```
DEPRECATION WARNING: Mounting an engine with a hash key name is deprecated and will be removed in Rails 8.1. Please use the at: option instead. Instead of: mount(SomeRackApp => "some_route") Please use: mount SomeRackApp, at: "some_route" (called from mount_ember_assets at /Users/ryunosuke.sato/src/github.com/thoughtbot/ember-cli-rails/lib/ember_cli/route_helpers.rb:40)
```
  • Loading branch information
tricknotes authored and seanpdoyle committed Aug 20, 2024
1 parent 58f4dae commit 75b4f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ember_cli/route_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def mount_ember_assets(app_name, to: "/")
app = ::EmberCli[app_name]

if app.mountable?
mount app.to_rack => to
mount app.to_rack, at: to
end
end
end
Expand Down

0 comments on commit 75b4f7d

Please sign in to comment.