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

@ -138,7 +138,7 @@ def update_column(name, value)
# 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 = {})