public
Description: Making assigning values to Active Record associations easier
Clone URL: git://github.com/bwyrosdick/association-attributes.git
name age message
file LICENSE Sun Apr 06 18:07:36 -0700 2008 added license [bwyrosdick]
file README Thu Mar 20 05:39:58 -0700 2008 works for both has_many_attr and has_one_attr [bwyrosdick]
file Rakefile Mon Mar 17 12:23:26 -0700 2008 renamed pieces to full name [bwyrosdick]
file init.rb Wed Mar 19 22:41:34 -0700 2008 has_many_attr working [bwyrosdick]
directory lib/ Sun Apr 06 19:55:10 -0700 2008 experiment aborted [bwyrosdick]
directory tasks/ Mon Mar 17 12:23:26 -0700 2008 renamed pieces to full name [bwyrosdick]
directory test/ Mon Mar 17 12:23:26 -0700 2008 renamed pieces to full name [bwyrosdick]
README
Association Attributes
=======

creates an attribute method that allows to you to set associations with a param hash of that object.  Made for use with 
fields_for.


Example
=======

has_one :address, :as => :addressable, :dependent => :destroy
has_one_attr :address

has_many :phone_numbers, :as => :phoneable, :dependent => :destroy, :order => 'name'
has_many_attr :phone_numbers


Copyright (c) 2008 CommonThread, released under the MIT license