Sha256: 51dc7112b2e4d7df8f8c5cb9c082d4c8a8b699f2cda2cf16ec9bf0c97fdcfae4
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
module RailsWorkflow class ErrorsController < ApplicationController def retry process = RailsWorkflow::Process.find(permitted_params[:process_id]) if permitted_params[:operation_id].present? operation = Operation.find(permitted_params[:operation_id]) end error = Error.find(permitted_params[:id]) error.retry if operation.present? redirect_to process_operation_path(process, operation) else redirect_to process_path(process) end end protected def permitted_params params.permit(:process_id, :operation_id, :id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems