Skip to content

Instantly share code, notes, and snippets.

@rra3
Created February 12, 2014 23:12
Show Gist options
  • Save rra3/8966460 to your computer and use it in GitHub Desktop.
Save rra3/8966460 to your computer and use it in GitHub Desktop.
require_dependency CbIntl::Engine.root.join('app','controllers','cb_intl','jobs_controller').to_s
module CbIntl
class JobsController < ApplicationController
include CBVisitorTracker::Tracker
append_after_filter :track_visitors, :only => [:detail, :jobresults]
def track_visitors
self.visitor_track[:job_results] = @jobdids.join(',') unless @jobdids.nil?
self.visitor_track[:site_property] = 'WIR'
self.visitor_track[:ipath] = params[:ipath] unless params[:ipath].nil?
self.visitor_track[:job_did] = @job.did unless @job.nil?
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment