Permalink
Browse files

Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attri…

…butes` in

    favor of `ActiveRecord::Generators::ActiveModel#update`
  • Loading branch information...
1 parent 4084b62 commit 822d99562777f7d0ab2b79cacaec47690f6271e6 @vipulnsward vipulnsward committed Jul 3, 2013
Showing with 5 additions and 6 deletions.
  1. +5 −0 railties/CHANGELOG.md
  2. +0 −6 railties/lib/rails/generators/active_model.rb
View
@@ -1,3 +1,8 @@
+* Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
+ favor of `ActiveRecord::Generators::ActiveModel#update`
+
+ *Vipul A M*
+
* Remove deprecated `config.whiny_nils` option
*Vipul A M*
@@ -65,12 +65,6 @@ def update(params=nil)
"#{name}.update(#{params})"
end
- def update_attributes(*args) # :nodoc:
- ActiveSupport::Deprecation.warn("Calling '@orm_instance.update_attributes' " \
- "is deprecated, please use '@orm_instance.update' instead.")
- update(*args)
- end
-
# POST create
# PATCH/PUT update
def errors

0 comments on commit 822d995

Please sign in to comment.