Module: Payola::AffiliateBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- SubscriptionsController, TransactionsController
- Defined in:
- app/controllers/concerns/payola/affiliate_behavior.rb
Instance Method Summary collapse
Instance Method Details
#find_affiliate ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/concerns/payola/affiliate_behavior.rb', line 9 def find_affiliate affiliate_code = [:aff] || params[:aff] @affiliate = Affiliate.where('lower(code) = lower(?)', affiliate_code).first if @affiliate [:aff] = affiliate_code end end |