aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-03-08 16:48:23 +0100
committerXavier Noria <fxn@hashref.com>2009-03-08 16:48:23 +0100
commitf3e4d14ab97145fae156364e7e467f2d0313e1b9 (patch)
tree4a50351d05bea256d908d0f3be245cc5a350059b /activerecord/lib
parent3fbfb81aa049a6e482e5b6ae37480988bfd28ec4 (diff)
downloadrails-f3e4d14ab97145fae156364e7e467f2d0313e1b9.tar.gz
rails-f3e4d14ab97145fae156364e7e467f2d0313e1b9.tar.bz2
rails-f3e4d14ab97145fae156364e7e467f2d0313e1b9.zip
remove unneeded curlies in AR::Base.update example
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 55ab1facf2..cfe1f8b8ef 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -737,12 +737,12 @@ module ActiveRecord #:nodoc:
# ==== Parameters
#
# * +id+ - This should be the id or an array of ids to be updated.
- # * +attributes+ - This should be a Hash of attributes to be set on the object, or an array of Hashes.
+ # * +attributes+ - This should be a hash of attributes to be set on the object, or an array of hashes.
#
# ==== Examples
#
# # Updating one record:
- # Person.update(15, { :user_name => 'Samuel', :group => 'expert' })
+ # Person.update(15, :user_name => 'Samuel', :group => 'expert')
#
# # Updating multiple records:
# people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy" } }