Module: PaidUp::PaidUpHelper
- Included in:
- FeaturesHelper, SubscriptionsHelper
- Defined in:
- app/helpers/paid_up/paid_up_helper.rb
Overview
PaidUp PaidUp Helper
Instance Method Summary collapse
Instance Method Details
#date_range(start_date, end_date) ⇒ Object
6 7 8 9 10 11 |
# File 'app/helpers/paid_up/paid_up_helper.rb', line 6 def date_range(start_date, end_date) dates = [] dates << start_date.to_date if date_valid?(start_date) dates << end_date.to_date if date_valid?(end_date) dates.join('—').html_safe end |
#paid_up_google_analytics_data_layer ⇒ Object
13 14 15 |
# File 'app/helpers/paid_up/paid_up_helper.rb', line 13 def paid_up_google_analytics_data_layer render partial: 'paid_up/layouts/google_analytics_data_layer' end |