1
0
Fork 0
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:
Neeraj Singh 2013-04-17 05:54:07 -04:00
parent ee48cf69ee
commit 5ea8ff0951

View file

@ -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)