lib/ahoy_matey.rb in ahoy_matey-0.1.0 vs lib/ahoy_matey.rb in ahoy_matey-0.1.1

- old
+ new

@@ -12,9 +12,15 @@ def self.visit_model ::Visit end + # TODO private + # performance hack for referer-parser + def self.referrer_parser + @referrer_parser ||= RefererParser::Referer.new("https://github.com/ankane/ahoy") + end + end ActionController::Base.send :include, Ahoy::Controller ActiveRecord::Base.send(:extend, Ahoy::Model) if defined?(ActiveRecord)