aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-04-02 11:34:50 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-04-02 11:34:50 -0400
commit2c45db11b2ef7ac0167a20358c45d5628b53005b (patch)
tree425d76bf7898e641c9a22ab1a4680309ae2ec34c /activerecord/lib/active_record/associations/join_dependency.rb
parent9030015e99dd5b5b0cefe1c13723f11aab18f057 (diff)
downloadrails-2c45db11b2ef7ac0167a20358c45d5628b53005b.tar.gz
rails-2c45db11b2ef7ac0167a20358c45d5628b53005b.tar.bz2
rails-2c45db11b2ef7ac0167a20358c45d5628b53005b.zip
no need to invoke to_s before applying intern
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb2
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