mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
update_attributes is deprecated
This commit is contained in:
parent
c35f316081
commit
30316fd3ca
@ -115,7 +115,7 @@ class CustomWorkflowsController < ApplicationController
|
||||
|
||||
def change_status
|
||||
respond_to do |format|
|
||||
if @workflow.update_attributes(:active => params[:active])
|
||||
if @workflow.update(active: params[:active])
|
||||
flash[:notice] = l(:notice_successful_status_change)
|
||||
format.html { redirect_to(custom_workflows_path) }
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user