Skip to content

Commit ee70c1d

Browse files
committed
Change skip controller use branching_enabled
The before action to check that the advanced branching features are enabled has been changed to use the Page#branching_enabled method, which checks the group and the environment variable.
1 parent cb679fc commit ee70c1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/pages/secondary_skip_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def delete_secondary_skip_input_params
7979
end
8080

8181
def ensure_branch_routing_feature_enabled
82-
raise ActionController::RoutingError, "branch_routing feature not enabled" unless Settings.features.branch_routing
82+
return if branching_enabled
83+
84+
raise ActionController::RoutingError, "branch_routing feature not enabled"
8385
end
8486

8587
def ensure_page_has_skip_condition

0 commit comments

Comments
 (0)