aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-09-01 16:02:08 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-09-01 16:02:08 -0300
commit2d92962701d545c29ebd38f51b787e48faabb504 (patch)
treeb6406d31be0873ac2b599b24176db24790d13385 /railties
parent5fbbf4417c1e463a3429dfe5dcef9462e4771a54 (diff)
downloadrails-2d92962701d545c29ebd38f51b787e48faabb504.tar.gz
rails-2d92962701d545c29ebd38f51b787e48faabb504.tar.bz2
rails-2d92962701d545c29ebd38f51b787e48faabb504.zip
Add #update_attributes as another alternative to #update_column.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/3_1_release_notes.textile2
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 4412d32cce..73a96388af 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 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_attributes+ or +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.