Sha256: 14f6b7a4aa1c5b5507afc5601323064165ebf510b5731d3e586d1464096c16cb

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

module ThinkFeelDoDashboard
  # Used as an aid to membership creation
  module MembershipsHelper
    def projected_end_date(membership)
      offset = Rails.application.config.study_length_in_weeks * 7
      start_day = membership.start_date || Time.zone.today

      I18n.l((start_day + offset.days), format: :standard)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.0.beta1 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.21 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.20 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.19 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.18 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.17 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.16 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.15 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.14 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.13 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.12 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.11 app/helpers/think_feel_do_dashboard/memberships_helper.rb
think_feel_do_dashboard-1.1.10 app/helpers/think_feel_do_dashboard/memberships_helper.rb