Sha256: 3c19f9b4c965d088434484440ee7f0b1cdc2106ee6d261dd8dc6e090e9e3d400
Contents?: true
Size: 307 Bytes
Versions: 39
Compression:
Stored size: 307 Bytes
Contents
module Saucy module Coupons extend ActiveSupport::Concern included do before_filter :set_coupon_cookie end def set_coupon_cookie if params[:coupon] && coupon = Coupon.find_by_name(params[:coupon]) session[:coupon_name] ||= params[:coupon] end end end end
Version data entries
39 entries across 39 versions & 1 rubygems