mirror of https://github.com/rails/rails
Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
favor of `ActiveRecord::Generators::ActiveModel#update`
This commit is contained in:
parent
4084b62dae
commit
822d995627
|
@ -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 @@ 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
|
||||
|
|
Loading…
Reference in New Issue