Class: Applicants::AffiliateTrackingController

Inherits:
ApplicationController show all
Defined in:
app/controllers/applicants/affiliate_tracking_controller.rb

Instance Method Summary collapse

Instance Method Details

#fireObject



3
4
5
6
7
8
9
10
# File 'app/controllers/applicants/affiliate_tracking_controller.rb', line 3

def fire
  if params[:transaction_id].present?
    # fire and forget requests
    Net::HTTP.get(Applicants::AffiliateTracking.has_offers_offer_url(params[:transaction_id]))
    Net::HTTP.get(Applicants::AffiliateTracking.has_offers_goal_url(params[:transaction_id]))
  end
  head :ok
end