module ActiveRecord::Reflection::ClassMethods

def reflections


Account.reflections
Invoice.reflections

Example:
Returns a hash containing all AssociationReflection objects for the current class
def reflections
  read_inheritable_attribute(:reflections) || write_inheritable_attribute(:reflections, {})
end