This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 85aacf1585dd3b7bb09dd61e4e8784e8674428b0
tree 74296b84e3f61422f2c4014bde036371b9d70c91
parent fd272f1b19463a2e3446111f0e3431fcc0b5daf9
tree 74296b84e3f61422f2c4014bde036371b9d70c91
parent fd272f1b19463a2e3446111f0e3431fcc0b5daf9
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
acts_as_applyable.gemspec | ||
| |
init.rb | ||
| |
lib/ | ||
| |
rails/ | ||
| |
test/ |
README
ActsAsApplyable =============== acts_as_applyable is a Rails plugin that allows you to ditch attr_accessible and attr_protected, in favor of a cleaner way of dealing with mass assignment Example ======= Old way: @user = User.new(params[:user]) @user.save New way: @user = User.new @user.params = params[:user] @user.apply(:username, :email, :password, :password_confirmation) In order to enable it, run this on your model If you want to act similar to attr_accessible, you can define a method called applyable_attributes that returns the array of fields you want to appy by default. def applyable_fields [:name, :email, :password] end that way you can run @user.apply and it will use these Copyright (c) 2008 RailsJedi.com, released under the MIT license








