Skip to content

Commit

Permalink
names are guaranteed to be symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Oct 9, 2013
1 parent 5a0cca7 commit 78e7bff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 78e7bff

Please sign in to comment.