1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Active Model instead of ActiveModel.

This commit is contained in:
Hendy Tanata 2011-08-14 13:11:36 +08:00
parent e10b288bc6
commit 33be1b0e4b

View file

@ -250,7 +250,7 @@ user.build_account{ |a| a.credit_limit => 100.0 }
* CSV Fixtures are deprecated and support will be removed in Rails 3.2.0.
* <tt>ActiveRecord#new</tt>, <tt>ActiveRecord#create</tt> and <tt>ActiveRecord#update_attributes</tt> all accept a second hash as an option that allows you to specify which role to consider when assigning attributes. This is built on top of ActiveModel's new mass assignment capabilities:
* <tt>ActiveRecord#new</tt>, <tt>ActiveRecord#create</tt> and <tt>ActiveRecord#update_attributes</tt> all accept a second hash as an option that allows you to specify which role to consider when assigning attributes. This is built on top of Active Model's new mass assignment capabilities:
<ruby>
class Post < ActiveRecord::Base