module Applicants class AffiliateTrackingController < Applicants::ApplicationController 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 end end