Sha256: aac238628f7986dab5a34d78d4726f1a39e4c7a190b2fde52176f13ab5c2714b

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

module PaidUp
  # PaidUp PaidUp Helper
  module PaidUpHelper
    def date_range(start_date, end_date)
      dates = []
      if start_date.present? &&
         (start_date.is_a?(Date) || start_date.is_a?(Integer))
        dates << start_date.to_date
      end
      if end_date.present? &&
         (end_date.is_a?(Date) || end_date.is_a?(Integer))
        dates << end_date.to_date
      end
      dates.join('&mdash;').html_safe
    end

    def paid_up_google_analytics_data_layer
      render partial: 'paid_up/layouts/google_analytics_data_layer'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
paid_up-0.11.7 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.6 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.5 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.4 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.3 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.2 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.1 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.11.0 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.10.4 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.10.3 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.10.2 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.10.1 app/helpers/paid_up/paid_up_helper.rb
paid_up-0.10.0 app/helpers/paid_up/paid_up_helper.rb