Skip to content

Commit

Permalink
Change the deprecation horizon of the dynamic routes segment to 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 23, 2017
1 parent 8f5413b commit 216965e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/route_set.rb
Expand Up @@ -584,14 +584,14 @@ def add_route(mapping, name)
if route.segment_keys.include?(:controller)
ActiveSupport::Deprecation.warn(<<-MSG.squish)
Using a dynamic :controller segment in a route is deprecated and
will be removed in Rails 5.2.
will be removed in Rails 6.0.
MSG
end

if route.segment_keys.include?(:action)
ActiveSupport::Deprecation.warn(<<-MSG.squish)
Using a dynamic :action segment in a route is deprecated and
will be removed in Rails 5.2.
will be removed in Rails 6.0.
MSG
end

Expand Down

0 comments on commit 216965e

Please sign in to comment.