Module: Modules::Reservations::Links

Overview

typed: ignore

Instance Method Summary collapse

Instance Method Details



11
12
13
# File 'app/my_lib/modules/reservations/links.rb', line 11

def cancel_link(reservation)
  __url_helpers.manage_my_reservations_url(hash: reservation.encrypted_id, format: :html)
end


7
8
9
# File 'app/my_lib/modules/reservations/links.rb', line 7

def modify_link(reservation)
  __url_helpers.manage_my_reservations_url(hash: reservation.encrypted_id, format: :html)
end


15
16
17
# File 'app/my_lib/modules/reservations/links.rb', line 15

def review_link(reservation)
  __url_helpers.new_booking_review_url(booking_id: reservation.encrypted_id, format: :html)
end


3
4
5
# File 'app/my_lib/modules/reservations/links.rb', line 3

def share_link(reservation)
  __url_helpers.forward_email_form_url(reservation_id: reservation.encrypted_id, format: :html)
end