Sha256: b4178d77e6c70e915477a14899a813c388dbab6a7806c6c38d9b2a5ed47ada02
Contents?: true
Size: 918 Bytes
Versions: 3
Compression:
Stored size: 918 Bytes
Contents
require "active_record" require "chartkick" require "groupdate" require "searchjoy/track" require "searchjoy/engine" if defined?(Rails) require "searchjoy/version" module Searchjoy # time zone mattr_reader :time_zone def self.time_zone=(time_zone) @@time_zone = time_zone.is_a?(String) ? ActiveSupport::TimeZone.new(time_zone) : time_zone end # top searches mattr_accessor :top_searches self.top_searches = 100 # conversion name mattr_accessor :conversion_name mattr_accessor :query_name mattr_accessor :query_url end begin require "searchkick" rescue LoadError # do nothing end if defined?(Searchkick) module Searchkick class Query include Searchjoy::Track define_method(:execute_without_track, instance_method(:execute)) define_method(:execute, instance_method(:execute_with_track)) end class Results attr_accessor :search end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
searchjoy-0.3.1 | lib/searchjoy.rb |
searchjoy-0.3.0 | lib/searchjoy.rb |
searchjoy-0.2.1 | lib/searchjoy.rb |