AssociationReflection

The actual reflection object that contains information about the given association. These should never need to be created manually, they will always be created by declaring a :has_many or :has_one association on a model.

Constants

Methods

#association

The association object referenced by this reflection

+ show/hide code
#class_name

Returns the name of the target model

+ show/hide code

#collection?

+ show/hide code

#initialize

+ show/hide code
#klass

Returns the target model

+ show/hide code
#macro

The type of association

+ show/hide code
#name

The name of the association

+ show/hide code

#rel_class_name

+ show/hide code

#rel_klass

+ show/hide code

#type

+ show/hide code

#validate?

+ show/hide code