Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in

favor of `ActiveRecord::Generators::ActiveModel#update`
This commit is contained in:
Vipul A M 2013-07-03 22:33:57 +05:30
parent 4084b62dae
commit 822d995627
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