method
reflect_on_association
v2.2.1 -
Show latest stable
- Class:
ActiveRecord::Reflection::ClassMethods
reflect_on_association(association)public
Returns the AssociationReflection object for the named association (use the symbol). Example:
Account.reflect_on_association(:owner) # returns the owner AssociationReflection Invoice.reflect_on_association(:line_items).macro # returns :has_many