Module

Associations

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_association_cache Clears out the association cache
included
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.