We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c188a2 commit 1562c19Copy full SHA for 1562c19
lib/avalon/workflow/workflow_controller_behavior.rb
@@ -70,6 +70,11 @@ def update
70
flashes = { error: context[:error], notice: context[:notice]}
71
if model_object.errors.present?
72
flash.now[:error] = 'There are errors with your submission. Please correct them before continuing.'
73
+
74
+ # Refresh the context before rendering edit
75
+ context = perform_step_action :before_step
76
+ custom_edit #yield to custom_edit in the controller
77
78
render :edit
79
elsif model_object.workflow.published? && model_object.workflow.current?(@active_step)
80
redirect_to(polymorphic_path(model_object), flash: flashes)
0 commit comments