lib/staccato/rack.rb in staccato-rack-0.4.1 vs lib/staccato/rack.rb in staccato-rack-0.4.2

- old
+ new

@@ -17,10 +17,10 @@ def initialize(app, tracking_id, options = {}) @app = app @tracking_id = tracking_id @logger = options[:logger] @default_tracker = Staccato.tracker(tracking_id) do |c| - c.adapter = FaradayHttpAdaper.new(@logger) + c.adapter = FaradayHttpAdaper.new(@logger) unless tracking_id == nil end end def call(env) env['staccato.pageview'] = PageView.new.tap { |p| p.logger = @logger }