1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #11272 from vipulnsward/generator_update

Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attribute`
This commit is contained in:
Rafael Mendonça França 2013-07-03 10:33:20 -07:00
commit f3f7f31407
2 changed files with 5 additions and 6 deletions

View file

@ -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*

View file

@ -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