Permalink
Browse files

Merge pull request #14364 from why-el/better-docs-for-update-attribute

Enhance docs for update_attribute [skip ci]
  • Loading branch information...
2 parents 28d05f0 + 40847a7 commit 06934945e44e301f1c06fc2de412084769300ba8 @arthurnn arthurnn committed Mar 12, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/persistence.rb
@@ -214,6 +214,8 @@ def becomes!(klass)
#
# 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)

0 comments on commit 0693494

Please sign in to comment.