Module: Railstank
- Defined in:
- lib/railstank.rb
Defined Under Namespace
Modules: Search
Classes: Error
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
10
11
12
|
# File 'lib/railstank.rb', line 10
def self.client
@client = IndexTank::Client.new config["api_url"]
end
|
.config(environment = RAILS_ENV) ⇒ Object
5
6
7
8
|
# File 'lib/railstank.rb', line 5
def self.config(environment=RAILS_ENV)
@config ||= {}
@config[environment] ||= YAML.load(File.open(RAILS_ROOT + '/config/indextank.yml').read)[environment]
end
|