Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removes the deprecation of update_attribute

Applying the new policy here to not deprecate stuff in point releases.
  • Loading branch information...
commit 81542f95d25825a7d3eff87d6f706661bf553b18 1 parent f203be9
@fxn fxn authored
View
4 activerecord/CHANGELOG.md
@@ -1,5 +1,7 @@
## Rails 3.2.8 ##
+* Removes the deprecation of `update_attribute`. *fxn*
+
* Reverted the deprecation of `*_sql` association options. They will
be deprecated in 4.0 instead.
@@ -11,8 +13,6 @@
*Rafael Mendonça França*
-* Change the deprecation warning of `update_attribute` suggesting to use `update_attributes` or `update_columns` instead of `update_column`. *Philip Arndt & Xavier Noria*
-
* update_columns added. *Sebastián Martínez*
## Rails 3.2.7 (Jul 26, 2012) ##
View
1  activerecord/lib/active_record/persistence.rb
@@ -179,7 +179,6 @@ def becomes(klass)
#
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)
Please sign in to comment.
Something went wrong with that request. Please try again.