Module: AsiaSearch

Defined in:
lib/asiasearch.rb

Defined Under Namespace

Modules: Base Classes: Error

Class Method Summary collapse

Class Method Details

.config(environment = RAILS_ENV) ⇒ Object



7
8
9
10
# File 'lib/asiasearch.rb', line 7

def self.config(environment=RAILS_ENV)
  @config ||= {}
  @config[environment] ||= YAML.load(File.open(RAILS_ROOT + '/config/asiasearch.yml').read)[environment]
end