aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-04-17 05:54:07 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-04-17 05:54:07 -0400
commit5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf (patch)
tree9eb90e20c0dde2755eb6e15a94de2e3b22e6a218 /activerecord/lib/active_record/persistence.rb
parentee48cf69eeb04a21941922c7f840babe3b619c6e (diff)
downloadrails-5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf.tar.gz
rails-5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf.tar.bz2
rails-5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf.zip
updated rdoc to reflect info about readonly attribute
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 42cece3ad0..cffe7e2050 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -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)