aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-01-10 05:07:25 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-01-10 05:07:25 +0900
commit4cfa60558a1d9cecc7bfb90fd8d767b5572ca404 (patch)
treed7c444505090603cc07d99e90ded1f59f69ed0ef /activerecord
parent3cd4c7c0ffc3e00004a238304e903a140fcbcd67 (diff)
downloadrails-4cfa60558a1d9cecc7bfb90fd8d767b5572ca404.tar.gz
rails-4cfa60558a1d9cecc7bfb90fd8d767b5572ca404.tar.bz2
rails-4cfa60558a1d9cecc7bfb90fd8d767b5572ca404.zip
Improve deprecation message for deprecated reflection class name
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 2da85df9e9..8af0d06ecb 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -372,7 +372,7 @@ module ActiveRecord
necessary and potentially creates circular dependencies.
Please pass the class name as a string:
- `belongs_to :client, class_name: 'Company'`
+ `#{macro} :#{name}, class_name: '#{options[:class_name]}'`
MSG
end
end