diff options
author | Xavier Noria <fxn@hashref.com> | 2011-08-31 14:30:25 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-31 14:30:25 -0700 |
commit | 27bcd962465b0e5a320be66ff1959221c8c285a2 (patch) | |
tree | 7bf59259a770617ae04141069efa467e31f8a929 /railties/guides/source/3_1_release_notes.textile | |
parent | e3efe78a5f127970cf47ba15889ae131604813ac (diff) | |
parent | 054bdc1f59a035e1b50febac1487f9b982d6e63a (diff) | |
download | rails-27bcd962465b0e5a320be66ff1959221c8c285a2.tar.gz rails-27bcd962465b0e5a320be66ff1959221c8c285a2.tar.bz2 rails-27bcd962465b0e5a320be66ff1959221c8c285a2.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/3_1_release_notes.textile')
-rw-r--r-- | railties/guides/source/3_1_release_notes.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/3_1_release_notes.textile b/railties/guides/source/3_1_release_notes.textile index 00765239d6..7de8866ff6 100644 --- a/railties/guides/source/3_1_release_notes.textile +++ b/railties/guides/source/3_1_release_notes.textile @@ -245,7 +245,7 @@ class User < ActiveRecord::Base has_one :account end -user.build_account{ |a| a.credit_limit => 100.0 } +user.build_account{ |a| a.credit_limit = 100.0 } </ruby> * Added <tt>ActiveRecord::Base.attribute_names</tt> to return a list of attribute names. This will return an empty array if the model is abstract or the table does not exist. @@ -271,7 +271,7 @@ Post.new(params[:post], :as => :admin) * +ConnectionManagement+ middleware is changed to clean up the connection pool after the rack body has been flushed. -* Added an +update_column+ method on Active Record. This new method updates a given attribute on an object, skipping validations and callbacks. It is recommended to use +update_attribute+ unless you are sure you do not want to execute any callback, including the modification of the +updated_at+ column. It should not be called on new records. +* Added an +update_column+ method on Active Record. This new method updates a given attribute on an object, skipping validations and callbacks. It is not recommended to use +update_attribute+ unless you are sure you do not want to execute any callback, including the modification of the +updated_at+ column. It should not be called on new records. * Associations with a +:through+ option can now use any association as the through or source association, including other associations which have a +:through+ option and +has_and_belongs_to_many+ associations. |