Code cleanup: RuboCop: Rails/ActiveRecordAliases

update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914).


git-svn-id: http://svn.redmine.org/redmine/trunk@18375 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-08-17 08:14:36 +00:00
parent 178449e529
commit 0d4ed12388
11 changed files with 16 additions and 30 deletions

View File

@@ -59,7 +59,7 @@ class EnumerationsController < ApplicationController
end
def update
if @enumeration.update_attributes(enumeration_params)
if @enumeration.update(enumeration_params)
respond_to do |format|
format.html {
flash[:notice] = l(:notice_successful_update)