Module: RatingUrlHelper Deprecated
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/helpers/rating_url_helper.rb
Overview
Deprecated.
This helper is deprecated. Use RatingUrlService instead. This module now acts as a compatibility shim, delegating to RatingUrlService. It will be removed in a future version.
Note:
This module is included in controllers and mailers where rating URLs are needed
Helper module for generating rating/review URLs for both signed users and guests
Instance Method Summary collapse
-
#guest_rating_url(reservation, rate: nil, only_path: true) ⇒ String
deprecated
Deprecated.
Use RatingUrlService.new(reservation).guest_url instead
-
#rating_url_for(reservation, rate: nil) ⇒ String
deprecated
Deprecated.
Use RatingUrlService.new(reservation).url_for instead
Instance Method Details
#guest_rating_url(reservation, rate: nil, only_path: true) ⇒ String
Deprecated.
Use RatingUrlService.new(reservation).guest_url instead
Generates a rating URL for a guest (non-signed user)
43 44 45 |
# File 'app/helpers/rating_url_helper.rb', line 43 def (reservation, rate: nil, only_path: true) RatingUrlService.new(reservation).guest_url(rate: rate, only_path: only_path) end |
#rating_url_for(reservation, rate: nil) ⇒ String
Deprecated.
Use RatingUrlService.new(reservation).url_for instead
Generates the appropriate rating URL based on user type
58 59 60 |
# File 'app/helpers/rating_url_helper.rb', line 58 def (reservation, rate: nil) RatingUrlService.new(reservation).url_for(rate: rate) end |