Permalink
Browse files

names are guaranteed to be symbols

  • Loading branch information...
1 parent 5a0cca7 commit 78e7bffc4f60a1c2984b465d99d191b917048fd6 @tenderlove tenderlove committed Oct 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/join_dependency.rb
@@ -186,7 +186,7 @@ def remove_duplicate_results!(base, records, associations)
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

0 comments on commit 78e7bff

Please sign in to comment.