There's no documentation for this item.
| Modules | |
|---|---|
| ClassMethods | Associations are a set of macro-like class methods for tying objects together through foreign keys. They express relationships like "Project has one Project Manager" or "Project belongs to a Portfolio". Each macro adds a number of methods to the class which are specialized according to the collection or association symbol and the options hash. It works much the same way as Ruby’s own attr* methods. Example: |
| Classes | |
|---|---|
| AssociationCollection | |
| AssociationProxy | |
| BelongsToAssociation | |
| BelongsToPolymorphicAssociation | |
| HasAndBelongsToManyAssociation | |
| HasManyAssociation | |
| HasManyThroughAssociation | |
| HasOneAssociation | |
| Public Methods | |
|---|---|
| clear_ |
Clears out the association cache |
| included | |
<code/>and<pre/>for code samples.