Sha256: 2dd922bf7872957dd94ed2056268592eb2f9a58f4942f97360b9bf7fbf4797f1
Contents?: true
Size: 624 Bytes
Versions: 37
Compression:
Stored size: 624 Bytes
Contents
class TrackAllTheThings < Rack::Tracker::Handler def render Tilt.new( File.join( File.dirname(__FILE__), '../fixtures/track_all_the_things.erb') ).render(self) end def self.track(name, event) { name.to_s => event } end def track_me env['tracker']['track_all_the_things'] end end class AnotherHandler < Rack::Tracker::Handler self.position = :body def render Tilt.new( File.join( File.dirname(__FILE__), '../fixtures/another_handler.erb') ).render(self) end def self.track(name, event) { name.to_s => event } end def track_me env['tracker']['another_handler'] end end
Version data entries
37 entries across 37 versions & 1 rubygems