From 81542f95d25825a7d3eff87d6f706661bf553b18 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 1 Aug 2012 20:40:03 +0200 Subject: removes the deprecation of update_attribute Applying the new policy here to not deprecate stuff in point releases. --- activerecord/lib/active_record/persistence.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 3926d6ee10..d6249db380 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -179,7 +179,6 @@ module ActiveRecord # def update_attribute(name, value) name = name.to_s - ActiveSupport::Deprecation.warn("update_attribute is deprecated and will be removed in Rails 4.1. Please use update_attributes or update_columns instead. Check their documentation for the implications.") raise ActiveRecordError, "#{name} is marked as readonly" if self.class.readonly_attributes.include?(name) send("#{name}=", value) save(:validate => false) -- cgit v1.2.3