Skip to content

Commit 75b4f7d

Browse files
tricknotesseanpdoyle
authored andcommitted
Rewrite mount engine syntax
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) ```
1 parent 58f4dae commit 75b4f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ember_cli/route_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def mount_ember_assets(app_name, to: "/")
3434
app = ::EmberCli[app_name]
3535

3636
if app.mountable?
37-
mount app.to_rack => to
37+
mount app.to_rack, at: to
3838
end
3939
end
4040
end

0 commit comments

Comments
 (0)