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