Module: Saucy::Coupons

Extended by:
ActiveSupport::Concern
Included in:
AccountsController
Defined in:
lib/saucy/coupons.rb

Instance Method Summary collapse

Instance Method Details



9
10
11
12
13
# File 'lib/saucy/coupons.rb', line 9

def set_coupon_cookie
  if params[:coupon] && coupon = Coupon.find_by_name(params[:coupon])
    session[:coupon_name] ||= params[:coupon]
  end
end