From 822d99562777f7d0ab2b79cacaec47690f6271e6 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Wed, 3 Jul 2013 22:33:57 +0530 Subject: [PATCH] Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in favor of `ActiveRecord::Generators::ActiveModel#update` --- railties/CHANGELOG.md | 5 +++++ railties/lib/rails/generators/active_model.rb | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index a3f5796b2c4..2fbdf6d12b0 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -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* diff --git a/railties/lib/rails/generators/active_model.rb b/railties/lib/rails/generators/active_model.rb index e5373704d7b..b6f8687d49b 100644 --- a/railties/lib/rails/generators/active_model.rb +++ b/railties/lib/rails/generators/active_model.rb @@ -65,12 +65,6 @@ module Rails "#{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