mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
updated rdoc to reflect info about readonly attribute
This commit is contained in:
parent
ee48cf69ee
commit
5ea8ff0951
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ module ActiveRecord
|
|||
# * updated_at/updated_on column is updated if that column is available.
|
||||
# * Updates all the attributes that are dirty in this object.
|
||||
#
|
||||
# This method raises an +ActiveRecord::ActiveRecordError+ if the
|
||||
# attribute is marked as readonly.
|
||||
def update_attribute(name, value)
|
||||
name = name.to_s
|
||||
verify_readonly_attribute(name)
|
||||
|
|
Loading…
Reference in a new issue