Sha256: 6cbed863ed64420819016718eba7b600781fbbe6fbf5572cd4c32039fe0072dc

Contents?: true

Size: 203 Bytes

Versions: 20

Compression:

Stored size: 203 Bytes

Contents

module CouponsHelper
  def days_until_expiration
    if session[:coupon_name] && @coupon ||= Coupon.find_by_name(session[:coupon_name])
      @coupon.free_months * 30
    else
      30
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
saucy-0.10.10 app/helpers/coupons_helper.rb
saucy-0.10.9 app/helpers/coupons_helper.rb
saucy-0.10.8 app/helpers/coupons_helper.rb
saucy-0.12.1 app/helpers/coupons_helper.rb
saucy-0.12.0 app/helpers/coupons_helper.rb
saucy-0.11.5 app/helpers/coupons_helper.rb
saucy-0.11.3 app/helpers/coupons_helper.rb
saucy-0.11.2 app/helpers/coupons_helper.rb
saucy-0.10.7 app/helpers/coupons_helper.rb
saucy-0.10.6 app/helpers/coupons_helper.rb
saucy-0.10.5 app/helpers/coupons_helper.rb
saucy-0.10.4 app/helpers/coupons_helper.rb
saucy-0.10.3 app/helpers/coupons_helper.rb
saucy-0.10.2 app/helpers/coupons_helper.rb
saucy-0.10.1 app/helpers/coupons_helper.rb
saucy-0.10.0 app/helpers/coupons_helper.rb
saucy-0.9.1 app/helpers/coupons_helper.rb
saucy-0.9.0 app/helpers/coupons_helper.rb
saucy-0.8.5 app/helpers/coupons_helper.rb
saucy-0.8.4 app/helpers/coupons_helper.rb