diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-26 11:08:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-26 11:08:00 -0700 |
commit | 91bd1951cc3d699729506fc2cec5bc6a43673b90 (patch) | |
tree | 8629065cb5952f7b0b0ac82bce75cf49b977b678 | |
parent | e28f9ad9df6c3b1a51db7ced3af781d114486aec (diff) | |
parent | 0421002d78b0b41c5a978568910f6dacacc6888f (diff) | |
download | rails-91bd1951cc3d699729506fc2cec5bc6a43673b90.tar.gz rails-91bd1951cc3d699729506fc2cec5bc6a43673b90.tar.bz2 rails-91bd1951cc3d699729506fc2cec5bc6a43673b90.zip |
Merged pull request #314 from smartinez87/master.
Fix #update_attributes api format error
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 998d237ada..787ac977e0 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -138,7 +138,7 @@ module ActiveRecord # will fail and false will be returned. # # When updating model attributes, mass-assignment security protection is respected. - # If no +:as+ option is supplied then the :default scope will be used. + # If no +:as+ option is supplied then the +:default+ scope will be used. # If you want to bypass the protection given by +attr_protected+ and # +attr_accessible+ then you can do so using the +:without_protection+ option. def update_attributes(attributes, options = {}) |