Permalink
Browse files

updated rdoc to reflect info about readonly attribute

  • Loading branch information...
1 parent ee48cf6 commit 5ea8ff095133eb8a9d8fe90f26f3d14b76b3ecdf Neeraj Singh committed Apr 17, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/persistence.rb
@@ -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)

0 comments on commit 5ea8ff0

Please sign in to comment.