Skip to content

Commit 048235b

Browse files
committed
Fix deprecated message in routing
1 parent a74aec8 commit 048235b

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)