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:
commit
f3f7f31407
2 changed files with 5 additions and 6 deletions
|
@ -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 a new issue