method
find_reflection
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::Associations::JoinDependency
find_reflection(klass, name)private
No documentation available.
# File activerecord/lib/active_record/associations/join_dependency.rb, line 209
def find_reflection(klass, name)
klass._reflect_on_association(name) or
raise ConfigurationError, "Association named '#{ name }' was not found on #{ klass.name }; perhaps you misspelled it?"
end