1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merged pull request #314 from smartinez87/master.

Fix #update_attributes api format error
This commit is contained in:
Aaron Patterson 2011-04-26 11:08:00 -07:00
commit 91bd1951cc

View file

@ -138,7 +138,7 @@ module ActiveRecord
# will fail and false will be returned. # will fail and false will be returned.
# #
# When updating model attributes, mass-assignment security protection is respected. # 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 # If you want to bypass the protection given by +attr_protected+ and
# +attr_accessible+ then you can do so using the +:without_protection+ option. # +attr_accessible+ then you can do so using the +:without_protection+ option.
def update_attributes(attributes, options = {}) def update_attributes(attributes, options = {})