diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-02 11:34:50 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-02 11:34:50 -0400 |
commit | 2c45db11b2ef7ac0167a20358c45d5628b53005b (patch) | |
tree | 425d76bf7898e641c9a22ab1a4680309ae2ec34c | |
parent | 9030015e99dd5b5b0cefe1c13723f11aab18f057 (diff) | |
download | rails-2c45db11b2ef7ac0167a20358c45d5628b53005b.tar.gz rails-2c45db11b2ef7ac0167a20358c45d5628b53005b.tar.bz2 rails-2c45db11b2ef7ac0167a20358c45d5628b53005b.zip |
no need to invoke to_s before applying intern
-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 f40368cfeb..e589959cf2 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -108,7 +108,7 @@ module ActiveRecord parent ||= join_parts.last case associations when Symbol, String - reflection = parent.reflections[associations.to_s.intern] or + reflection = parent.reflections[associations.intern] or raise ConfigurationError, "Association named '#{ associations }' was not found; perhaps you misspelled it?" unless join_association = find_join_association(reflection, parent) @reflections << reflection |