Created
February 13, 2014 17:19
-
-
Save rra3/8979552 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] = CbIntl.site_name | |
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