From 30316fd3ca5b7bd359ccf4ec63bb6ad027c532e5 Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Tue, 18 May 2021 13:22:03 +0200 Subject: [PATCH] update_attributes is deprecated --- app/controllers/custom_workflows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/custom_workflows_controller.rb b/app/controllers/custom_workflows_controller.rb index 11ac210..182dfea 100644 --- a/app/controllers/custom_workflows_controller.rb +++ b/app/controllers/custom_workflows_controller.rb @@ -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