Association Extensions plugin

Plugin details

This plugin adds a few methods to classes having associations and to association proxies.

Websitehttp://rubyforge.org/projects/assocext/ Repositorysvn://rubyforge.org/var/svn/assocext/association_extensions/trunk Author Michael Schuerig Tags association LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/assocext/association_extensions/trunk

Methods:

* association_candidates
* association.candidates
* association_complement
* association.complement
* association_unrelated
* association.unrelated
* association_singular_ids

The standard method association_singular_ids= is changed so that it is more lenient; now it ignores blank ids.

Methods on association proxies, e.g., association.candidates, can't be reliably called on belongs_to and has_one associations. When associations of these kinds are nil, there is no proxy and thus nothing to call #candidates et al. on. The methods on the base object can always be savely called.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago