diff options
author | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-03-12 17:48:23 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-03-12 17:48:23 -0400 |
commit | 06934945e44e301f1c06fc2de412084769300ba8 (patch) | |
tree | f2ebf8ad5d77ab8171fe2ee76bb1cd02d229f760 /activerecord | |
parent | 28d05f0a80e640cc66a9cf77dcc44a673e85d4eb (diff) | |
parent | 40847a7831a2bccaeb04b796c5534418d8b3c334 (diff) | |
download | rails-06934945e44e301f1c06fc2de412084769300ba8.tar.gz rails-06934945e44e301f1c06fc2de412084769300ba8.tar.bz2 rails-06934945e44e301f1c06fc2de412084769300ba8.zip |
Merge pull request #14364 from why-el/better-docs-for-update-attribute
Enhance docs for update_attribute [skip ci]
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) |