mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user