public
Description: Making assigning values to Active Record associations easier
Homepage:
Clone URL: git://github.com/bwyrosdick/association-attributes.git
bwyrosdick (author)
Mon Nov 03 13:51:08 -0800 2008
commit  b8579afc9658b4e5a34dfc6c05f60c6c277a8239
tree    27d29b993e3e29da30752d05a337b8bd3d56bfc6
parent  8cb4874a5e089817adb0cc78a137f3024dc5f54d
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/ Mon Nov 03 13:51:08 -0800 2008 added unique_by check [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