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

Merge pull request #14364 from why-el/better-docs-for-update-attribute

Enhance docs for update_attribute [skip ci]
This commit is contained in:
Arthur Nogueira Neves 2014-03-12 17:48:23 -04:00
commit 06934945e4

View file

@ -214,6 +214,8 @@ module ActiveRecord
#
# This method raises an +ActiveRecord::ActiveRecordError+ if the
# attribute is marked as readonly.
#
# See also +update_column+.
def update_attribute(name, value)
name = name.to_s
verify_readonly_attribute(name)