diff options
author | Xavier Noria <fxn@hashref.com> | 2009-03-08 16:48:23 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-03-08 16:48:23 +0100 |
commit | f3e4d14ab97145fae156364e7e467f2d0313e1b9 (patch) | |
tree | 4a50351d05bea256d908d0f3be245cc5a350059b /activerecord/lib | |
parent | 3fbfb81aa049a6e482e5b6ae37480988bfd28ec4 (diff) | |
download | rails-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-x | activerecord/lib/active_record/base.rb | 4 |
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" } } |