diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 19:14:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 19:14:12 -0700 |
commit | 78e7bffc4f60a1c2984b465d99d191b917048fd6 (patch) | |
tree | 08ed2daca0e05424c845de0a65b8f33ea7773a46 /activerecord/lib | |
parent | 5a0cca739a42c60fc852b42eb2b36c457981dce2 (diff) | |
download | rails-78e7bffc4f60a1c2984b465d99d191b917048fd6.tar.gz rails-78e7bffc4f60a1c2984b465d99d191b917048fd6.tar.bz2 rails-78e7bffc4f60a1c2984b465d99d191b917048fd6.zip |
names are guaranteed to be symbols
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 00321042a8..d67e6aaaad 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -186,7 +186,7 @@ module ActiveRecord end def find_reflection(klass, name) - klass.reflect_on_association(name.intern) or + klass.reflect_on_association(name) or raise ConfigurationError, "Association named '#{ name }' was not found on #{ klass.name }; perhaps you misspelled it?" end |