Sha256: d2189f7f5316ed4ad829558eefba2af80040fadbf81a99921c4ae9cb1621bc82
Contents?: true
Size: 737 Bytes
Versions: 10
Compression:
Stored size: 737 Bytes
Contents
require 'confstruct' require "bento_search/engine" require 'bento_search/routes' require 'bento_search/util' # ugh, sorry: require File.dirname(__FILE__) + '/../app/models/bento_search/registrar' module BentoSearch def self.global_registrar @@global_registrar ||= BentoSearch::Registrar.new end # See BentoSearch::Registrar#register_engine, this is a # default global registrar. def self.register_engine(id, data = nil, &block) global_registrar.register_engine(id, data, &block) end def self.get_engine(id) global_registrar.get_engine(id) end # Mostly just used for testing def self.reset_engine_registrations! global_registrar.reset_engine_registrations! end end
Version data entries
10 entries across 10 versions & 1 rubygems