Sha256: 2dfc7a0e05b4c228cf086ad7647f72543fc9442a0e287b13c97bec1cdc04f4ad

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

require "searchjoy/search"
require "searchjoy/track"
require "searchjoy/engine"
require "searchjoy/version"

require "chartkick"
require "groupdate"

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
end

if defined?(Searchkick)
  module Searchkick
    module Search
      include Searchjoy::Track

      alias_method :search_without_track, :search
      alias_method :search, :search_with_track
    end

    class Results
      attr_accessor :search
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
searchjoy-0.0.6 lib/searchjoy.rb
searchjoy-0.0.5 lib/searchjoy.rb