From 40847a7831a2bccaeb04b796c5534418d8b3c334 Mon Sep 17 00:00:00 2001 From: Mohamed Wael Khobalatte Date: Wed, 12 Mar 2014 16:57:45 +0100 Subject: [PATCH] Enhance docs for update_attribute [ci-skip] --- activerecord/lib/active_record/persistence.rb | 2 ++ 1 file changed, 2 insertions(+) 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)