update_attributes is deprecated

This commit is contained in:
karel.picman@lbcfree.net 2021-05-18 13:22:03 +02:00
parent c35f316081
commit 30316fd3ca

View File

@ -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