aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJon Atack <jonnyatack@gmail.com>2016-03-03 13:40:50 +0100
committerJon Atack <jonnyatack@gmail.com>2016-03-03 14:33:30 +0100
commiteba0041c2132e46bf9e040b31059e020e590d2ae (patch)
tree5d96e9d93b22457794cc36f4953d872f788392dc /actionpack
parent2c53e27992500ab0e68db18ea71ad58f6c845edb (diff)
downloadrails-eba0041c2132e46bf9e040b31059e020e590d2ae.tar.gz
rails-eba0041c2132e46bf9e040b31059e020e590d2ae.tar.bz2
rails-eba0041c2132e46bf9e040b31059e020e590d2ae.zip
Niceify the dynamic routes deprecation messages
Follow-up to #23980. - Fix grammar: "be remove" -> "be removed". - Wrap lines at 80 chars. Lurvely ;-)
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index f807a8fe16..85f202b823 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -515,11 +515,17 @@ module ActionDispatch
named_routes[name] = route if name
if route.segment_keys.include?(:controller)
- ActiveSupport::Deprecation.warn("Using a dynamic :controller segment in a route is deprecated and will be remove in Rails 5.1")
+ ActiveSupport::Deprecation.warn(<<-MSG.squish)
+ Using a dynamic :controller segment in a route is deprecated and
+ will be removed in Rails 5.1
+ MSG
end
if route.segment_keys.include?(:action)
- ActiveSupport::Deprecation.warn("Using a dynamic :action segment in a route is deprecated and will be remove in Rails 5.1")
+ ActiveSupport::Deprecation.warn(<<-MSG.squish)
+ Using a dynamic :action segment in a route is deprecated and
+ will be removed in Rails 5.1
+ MSG
end
route