Skip to content

Commit df6cdec

Browse files
committed
Use the existing content instead of building it again
1 parent 1562c19 commit df6cdec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/avalon/workflow/workflow_controller_behavior.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def update
7272
flash.now[:error] = 'There are errors with your submission. Please correct them before continuing.'
7373

7474
# Refresh the context before rendering edit
75-
context = perform_step_action :before_step
75+
context = HYDRANT_STEPS.get_step(@active_step).send(:before_step, context)
76+
context_to_instance_variables context
7677
custom_edit #yield to custom_edit in the controller
7778

7879
render :edit

0 commit comments

Comments
 (0)