diff options
author | Amparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com> | 2013-01-02 16:16:24 -0500 |
---|---|---|
committer | Amparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com> | 2013-01-03 12:03:34 -0500 |
commit | 1bb020063c1bad6cc6a2ad7a4635bfc31a308f65 (patch) | |
tree | 1559ce4b520e4134ad2ea52a1f6e20f3581aa300 /activesupport | |
parent | 1f3a1fedf951dbc4b72d178e2a649c4afd2f1566 (diff) | |
download | rails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.tar.gz rails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.tar.bz2 rails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.zip |
Change docs to use update instead of update_attributes
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/except.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/except.rb b/activesupport/lib/active_support/core_ext/hash/except.rb index 5cb00d0ebd..d90e996ad4 100644 --- a/activesupport/lib/active_support/core_ext/hash/except.rb +++ b/activesupport/lib/active_support/core_ext/hash/except.rb @@ -2,7 +2,7 @@ class Hash # Return a hash that includes everything but the given keys. This is useful for # limiting a set of parameters to everything but a few known toggles: # - # @person.update_attributes(params[:person].except(:admin)) + # @person.update(params[:person].except(:admin)) def except(*keys) dup.except!(*keys) end |