We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c188a2 + df6cdec commit 503f5fdCopy full SHA for 503f5fd
lib/avalon/workflow/workflow_controller_behavior.rb
@@ -70,6 +70,12 @@ 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 = HYDRANT_STEPS.get_step(@active_step).send(:before_step, context)
76
+ context_to_instance_variables context
77
+ custom_edit #yield to custom_edit in the controller
78
79
render :edit
80
elsif model_object.workflow.published? && model_object.workflow.current?(@active_step)
81
redirect_to(polymorphic_path(model_object), flash: flashes)
0 commit comments