diff options
author | Go MAEDA <maeda@farend.jp> | 2019-08-17 08:14:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-08-17 08:14:36 +0000 |
commit | 0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d (patch) | |
tree | d5d4d2aa395ad5ba2aab27fdd976b73803a4d80b /app/controllers | |
parent | 178449e5290e6c6e733c7c169a49a7d3cfa97cba (diff) | |
download | redmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.tar.gz redmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.zip |
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
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/enumerations_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb index 0936d9fd9..ed5a0e636 100644 --- a/app/controllers/enumerations_controller.rb +++ b/app/controllers/enumerations_controller.rb @@ -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) |