Class: RailsWorkflow::ErrorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- RailsWorkflow::ErrorsController
- Defined in:
- app/controllers/rails_workflow/errors_controller.rb
Instance Method Summary collapse
Instance Method Details
#retry ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/rails_workflow/errors_controller.rb', line 5 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 |