Skip to content

Commit

Permalink
Rename method so not to conflict with route helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
elceebee committed Jan 6, 2025
1 parent b9992f6 commit 09b4aad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<% if show_withdraw? %>
<h2 class="govuk-heading-m">Withdraw your application</h2>
<p class="govuk-body">You can <%= govuk_link_to 'withdraw this application', withdrawal_path %> if you no longer wish to be considered for this course.</p>
<p class="govuk-body">You can <%= govuk_link_to 'withdraw this application', path_for_withdrawals %> if you no longer wish to be considered for this course.</p>
<% end %>

<% if show_provider_contact_component? %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def provider
application_choice.current_provider
end

def withdrawal_path
def path_for_withdrawals
if FeatureFlag.active?(:new_candidate_withdrawal_reasons)
candidate_interface_withdrawal_reasons_level_one_reason_start_path(application_choice)
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if action == :withdraw %>
<p class="govuk-body">
<%= govuk_link_to 'Withdraw this application', withdrawal_path %>
<%= govuk_link_to 'Withdraw this application', path_for_withdrawals %>
</p>
<% elsif action == :respond_to_offer %>
<p class="govuk-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(action:, application_choice:)
@application_choice = application_choice
end

def withdrawal_path
def path_for_withdrawals
if FeatureFlag.active? :new_candidate_withdrawal_reasons
candidate_interface_withdrawal_reasons_level_one_reason_start_path(application_choice.id)
else
Expand Down

0 comments on commit 09b4aad

Please sign in to comment.