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