mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 08:14: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
|
def change_status
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @workflow.update_attributes(:active => params[:active])
|
if @workflow.update(active: params[:active])
|
||||||
flash[:notice] = l(:notice_successful_status_change)
|
flash[:notice] = l(:notice_successful_status_change)
|
||||||
format.html { redirect_to(custom_workflows_path) }
|
format.html { redirect_to(custom_workflows_path) }
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user