-
Notifications
You must be signed in to change notification settings - Fork 1
allows creating/updating associated models with hash params (rails)
License
psergi/accessible_association
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
AccessibleAssociation ===================== Allows associations to be created with hash parameters. Example ======= class User < ActiveRecord::Base belongs_to :preferences accessible_association :preferences end u = User.create(:name => 'jones', :preferences => { :email => 'jones@mail.com' }) u.name => 'jones' u.preferences.email => 'jones@mail.com' Copyright (c) 2009 Phil Sergi, released under the MIT license
About
allows creating/updating associated models with hash params (rails)
Resources
License
Stars
Watchers
Forks
Releases
No releases published