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?
#initialize
- #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
#rel_klass
#type
#validate?