module ErpSearch::Config

Attributes

use_solr_for_content[RW]
use_solr_for_dynamic_form_models[RW]

Public Class Methods

configure(&blk) click to toggle source
# File lib/erp_search/config.rb, line 20
def configure(&blk)
  @configure_blk = blk
end
configure!() click to toggle source
# File lib/erp_search/config.rb, line 24
def configure!
  @configure_blk.call(self) if @configure_blk
end
init!() click to toggle source
# File lib/erp_search/config.rb, line 6
def init!
  @defaults = {
      :@use_solr_for_content => ErpSearch::Engine::USE_SOLR_FOR_CONTENT, 
      :@use_solr_for_dynamic_form_models => ErpSearch::Engine::USE_SOLR_FOR_DYNAMIC_FORM_MODELS,
      :@use_party_search_facts => ErpSearch::Engine::USE_PARTY_SEARCH_FACTS
  }
end
reset!() click to toggle source
# File lib/erp_search/config.rb, line 14
def reset!
  @defaults.each do |k, v|
    instance_variable_set(k, v)
  end
end