lib/ahoy.rb in ahoy_matey-3.0.5 vs lib/ahoy.rb in ahoy_matey-3.1.0
- old
+ new
@@ -102,9 +102,17 @@
else
# set last 80 bits to zeros
addr.mask(48).to_s
end
end
+
+ def self.instance
+ Thread.current[:ahoy]
+ end
+
+ def self.instance=(value)
+ Thread.current[:ahoy] = value
+ end
end
ActiveSupport.on_load(:action_controller) do
include Ahoy::Controller
end