diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-17 05:54:07 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-17 05:54:07 -0400 |
commit | 5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf (patch) | |
tree | 9eb90e20c0dde2755eb6e15a94de2e3b22e6a218 /activerecord/lib/active_record | |
parent | ee48cf69eeb04a21941922c7f840babe3b619c6e (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
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) |