diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-01 23:50:31 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-01 23:52:23 +0530 |
commit | c96cb8897b4afb0fea7b5fed4ec41d1772d99644 (patch) | |
tree | 7c3b7642f6df9b433d00a067d7f0621fb1cd5f83 /railties/guides/source | |
parent | 8e900f1e38166ea906967eb8ede9bd14e78eb417 (diff) | |
download | rails-c96cb8897b4afb0fea7b5fed4ec41d1772d99644.tar.gz rails-c96cb8897b4afb0fea7b5fed4ec41d1772d99644.tar.bz2 rails-c96cb8897b4afb0fea7b5fed4ec41d1772d99644.zip |
Revert "Fix logic in 3.1 release notes sentence"
This reverts commit 30d65da17e5fb1cdd3f10a6d14f4295b57e26286.
Reason: This commit is incorrect. It is indeed recommended to use
update_attribute when you want callbacks to be invoked.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/3_1_release_notes.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/3_1_release_notes.textile b/railties/guides/source/3_1_release_notes.textile index 7de8866ff6..4412d32cce 100644 --- a/railties/guides/source/3_1_release_notes.textile +++ b/railties/guides/source/3_1_release_notes.textile @@ -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 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. +* 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. * 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. |