reflect_on_all_autosave_associations

reflect_on_all_autosave_associations() Instance Public methods Returns an array of AssociationReflection objects for all associations which have :autosave enabled. @api public

reflect_on_association

reflect_on_association(association) Instance Public methods Returns the AssociationReflection object for the association (use the symbol). Account.reflect_on_association(:owner) # returns the owner AssociationReflection Invoice.reflect_on_association(:line_items).macro # returns :has_many @api public

reflections

reflections() Instance Public methods Returns a Hash of name of the reflection as the key and a AssociationReflection as the value. Account.reflections # => {balance: AggregateReflection} @api public

new

new(macro, name, scope, options, active_record) Class Public methods

==

==(other_aggregation) Instance Public methods Returns true if self and other_aggregation have the same name attribute, active_record attribute, and other_aggregation has an options hash assigned to it.

autosave=

autosave=(autosave) Instance Public methods

class_name

class_name() Instance Public methods Returns the class name for the macro. composed_of :balance, class_name: 'Money' returns 'Money' has_many :clients returns 'Client'

klass

klass() Instance Public methods Returns the class for the macro. composed_of :balance, class_name: 'Money' returns the Money class has_many :clients returns the Client class

new

new(klass, table, values = {}) Class Public methods

==

==(other) Instance Public methods Compares two relations for equality.