aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods.rb
diff options
context:
space:
mode:
authorAbhay Nikam <nikam.abhay1@gmail.com>2019-04-20 08:09:40 +0530
committerAbhay Nikam <nikam.abhay1@gmail.com>2019-04-20 08:09:40 +0530
commit1f9c2897a7dc2be7cc4b8593416080912bd13a5a (patch)
treecf39ab2e4f5c12d5f372ed48bd99624b851afd91 /activerecord/lib/active_record/attribute_methods.rb
parent37b2c83dbc175c23ef34d5b18ca7b5bdab6cf86b (diff)
downloadrails-1f9c2897a7dc2be7cc4b8593416080912bd13a5a.tar.gz
rails-1f9c2897a7dc2be7cc4b8593416080912bd13a5a.tar.bz2
rails-1f9c2897a7dc2be7cc4b8593416080912bd13a5a.zip
Change deprecation message for dangerous query method to be disallowed in Rails 6.1
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods.rb')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index 238ea92da4..331813f338 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -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()."