Module: PaidUp::SubscriptionsHelper
- Includes:
- PaidUpHelper
- Defined in:
- app/helpers/paid_up/subscriptions_helper.rb
Overview
PaidUp Subscriptions Helper
Instance Method Summary collapse
Methods included from PaidUpHelper
#date_range, #paid_up_google_analytics_data_layer
Instance Method Details
#subscription_dl(subscription) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/paid_up/subscriptions_helper.rb', line 8 def subscription_dl(subscription) data = {} data[:status.l] = subscription.status data = add_date_if_set( data, :paid_thru, subscription.current_period_start, subscription.current_period_end ) data = add_date_if_set( data, :trial_period, subscription.trial_start, subscription.trial_end ) dl data end |