Skip to content

Instantly share code, notes, and snippets.

@rra3
Created February 12, 2014 21:07
Show Gist options
  • Save rra3/8964528 to your computer and use it in GitHub Desktop.
Save rra3/8964528 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
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?
binding.pry
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment