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:
commit
06934945e4
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue