Merge pull request #36041 from abhaynikam/change-deprecation-for-dynamic-route-segment-to-6.1

Change the deprecation message for dynamic routes segment to 6.1
This commit is contained in:
Ryuta Kamizono 2019-04-20 13:55:05 +09:00 committed by GitHub
commit 96cf7e0e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -591,14 +591,14 @@ module ActionDispatch
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

View File

@ -197,7 +197,7 @@ module ActiveRecord
"Dangerous query method (method whose arguments are used as raw " \
"SQL) called with non-attribute argument(s): " \
"#{unexpected.map(&:inspect).join(", ")}. Non-attribute " \
"arguments will be disallowed in Rails 6.0. This method should " \
"arguments will be disallowed in Rails 6.1. This method should " \
"not be called with user-provided values, such as request " \
"parameters or model attributes. Known-safe values can be passed " \
"by wrapping them in Arel.sql()."