Skip to content

Commit

Permalink
Add comment explaining method
Browse files Browse the repository at this point in the history
  • Loading branch information
LeticiaErrandonea committed Jun 12, 2024
1 parent 4ef9d9a commit baa1af4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/presenters/reservation_user_action_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def can_fix_problem?
OrderDetails::ProblemResolutionPolicy.new(order_detail).user_can_resolve?
end

# When the action links are in the order show, they should be opened in a modal.
# In that case, a redirect_to_order_id is set, so after the user submits the form,
# they are redirected back to the proper order show.
def modal_display?
@redirect_to_order_id.present?
end
Expand Down

0 comments on commit baa1af4

Please sign in to comment.