Plugins - ActsAsNetwork
Add to favoritesacts_as_network is intended to simplify the definition and storage of reciprocal relationships between entities using ActiveRecord by exposing a “network” of 2-way connections.
What makes it special is that it does this in a DRY way using only a single record in an intermediate has_and_belongs_to_many join table or has_many :through join model. There is no redundancy, and you need only one instance of an association or join model to represent both directions of the relationship.
The plugin also provides an acts_as_union and general purpose UnionCollection to facilitate union representations of multiple ActiveRecord collections.
http://www.zetetic.net/2007/09/21/social-networking-with-rails-using-actsasnetwork
git://github.com/sjlombardo/acts_as_network.git
Rails' (MIT)
Model
