Permalink
Browse files

Merge pull request #11272 from vipulnsward/generator_update

Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attribute`
  • Loading branch information...
2 parents d6e1d6d + 822d995 commit f3f7f31407eacc8d44b550aaa773ae802979f8ed @rafaelfranca rafaelfranca 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
@@ -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 f3f7f31

Please sign in to comment.