Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated rdoc to reflect info about readonly attribute

  • Loading branch information...
commit 5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf 1 parent ee48cf6
Neeraj Singh neerajdotname authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/lib/active_record/persistence.rb
2  activerecord/lib/active_record/persistence.rb
View
@@ -204,6 +204,8 @@ def becomes!(klass)
# * 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)
Please sign in to comment.
Something went wrong with that request. Please try again.