diff options
author | Mohamed Wael Khobalatte <wael.khobalatte@gmail.com> | 2014-03-12 16:57:45 +0100 |
---|---|---|
committer | Mohamed Wael Khobalatte <wael.khobalatte@gmail.com> | 2014-03-12 17:49:23 +0100 |
commit | 40847a7831a2bccaeb04b796c5534418d8b3c334 (patch) | |
tree | 1c9e6952ef86dbee73d045e62f8b2f8de3d61b54 /activerecord | |
parent | 591b8f395d101ad1a3b009b98de0e6bd2a5d6222 (diff) | |
download | rails-40847a7831a2bccaeb04b796c5534418d8b3c334.tar.gz rails-40847a7831a2bccaeb04b796c5534418d8b3c334.tar.bz2 rails-40847a7831a2bccaeb04b796c5534418d8b3c334.zip |
Enhance docs for update_attribute [ci-skip]
Diffstat (limited to 'activerecord')
-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 203928fb3f..4e63206cf4 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -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) |