提交 37b2c83d 编写于 作者: A Abhay Nikam

Change the deprecation message for dynamic routes segment to 6.1

上级 92c46437
......@@ -591,14 +591,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 6.0.
will be removed in Rails 6.1.
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 6.0.
will be removed in Rails 6.1.
MSG
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册