module ActiveFedora::Reflection::ClassMethods

def reflections


Account.reflections
Invoice.reflections

Example:
Returns a hash containing all AssociationReflection objects for the current class.
def reflections
  @__reflections ||= begin
    ref = {}
    _reflections.each do |name, reflection|
      parent_reflection = reflection.parent_reflection
      if parent_reflection
        parent_name = parent_reflection.name
        ref[parent_name.to_s] = parent_reflection
      else
        ref[name] = reflection
      end
    end
    ref
  end
end