Permalink
Browse files

Enhance docs for update_attribute [ci-skip]

  • Loading branch information...
1 parent 591b8f3 commit 40847a7831a2bccaeb04b796c5534418d8b3c334 @why-el why-el 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 40847a7

Please sign in to comment.