Sha256: a58c0bdad20ede36cfe92f46bc473be0f40e8295fe1564e7008dbe1a41f1a842

Contents?: true

Size: 185 Bytes

Versions: 1

Compression:

Stored size: 185 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saucy-0.8.3 app/helpers/coupons_helper.rb