diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-07-03 22:33:57 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-07-03 22:33:57 +0530 |
commit | 822d99562777f7d0ab2b79cacaec47690f6271e6 (patch) | |
tree | 4def4afe53cc4405e19bc7cfceac6b58f95a094b | |
parent | 4084b62dae04fbb82e862894856d9a6eca8bea38 (diff) | |
download | rails-822d99562777f7d0ab2b79cacaec47690f6271e6.tar.gz rails-822d99562777f7d0ab2b79cacaec47690f6271e6.tar.bz2 rails-822d99562777f7d0ab2b79cacaec47690f6271e6.zip |
Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
favor of `ActiveRecord::Generators::ActiveModel#update`
-rw-r--r-- | railties/CHANGELOG.md | 5 | ||||
-rw-r--r-- | 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 a3f5796b2c..2fbdf6d12b 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 e5373704d7..b6f8687d49 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 |