Skip to content

Commit c713ec9

Browse files
committed
Merge pull request rails#19764 from rono23/fix-deprecated-message-in-routing
Fix deprecated message in routing
2 parents a74aec8 + 048235b commit c713ec9

File tree

1 file changed

+1
-1
lines changed
  • actionpack/lib/action_dispatch/routing

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/routing/mapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def split_to(to)
291291
when String
292292
ActiveSupport::Deprecation.warn(<<-MSG.squish)
293293
Defining a route where `to` is a controller without an action is deprecated.
294-
Please change `to: :#{to}` to `controller: :#{to}`.
294+
Please change `to: '#{to}'` to `controller: '#{to}'`.
295295
MSG
296296

297297
[to, nil]

0 commit comments

Comments
 (0)