From eba0041c2132e46bf9e040b31059e020e590d2ae Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 3 Mar 2016 13:40:50 +0100 Subject: Niceify the dynamic routes deprecation messages Follow-up to #23980. - Fix grammar: "be remove" -> "be removed". - Wrap lines at 80 chars. Lurvely ;-) --- actionpack/lib/action_dispatch/routing/route_set.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'actionpack') 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 -- cgit v1.2.3