Sha256: f8998b8f494bbe5f9d4217a8d1cffda0e45296a525add88a0b857a32decc4c57
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
require "tire_async_index/configuration" require "tire_async_index/exceptions" require "tire_async_index/version" module TireAsyncIndex extend self attr_accessor :configuration def configure self.configuration ||= Configuration.new yield(configuration) end def queue self.configuration.queue end def engine self.configuration.engine end def worker case configuration.engine when :sidekiq TireAsyncIndex::Workers::Sidekiq when :resque TireAsyncIndex::Workers::Resque else TireAsyncIndex::Workers::UpdateIndex end end module Workers autoload :UpdateIndex, 'tire_async_index/workers/update_index' autoload :Sidekiq, 'tire_async_index/workers/sidekiq' autoload :Resque, 'tire_async_index/workers/resque' end end require 'tire/model/async_callbacks' TireAsyncIndex.configure {}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tire_async_index-0.3.0 | lib/tire_async_index.rb |