Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no need to invoke to_s before applying intern

  • Loading branch information...
commit 2c45db11b2ef7ac0167a20358c45d5628b53005b 1 parent 9030015
@neerajdotname neerajdotname authored
View
2  activerecord/lib/active_record/associations/join_dependency.rb
@@ -108,7 +108,7 @@ def build(associations, parent = nil, join_type = Arel::InnerJoin)
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
Please sign in to comment.
Something went wrong with that request. Please try again.