Skip to content

Commit

Permalink
Use default_index as index name if no name is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Dec 8, 2010
1 parent c2986f7 commit 2539e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/thinkingtank/init.rb
Expand Up @@ -38,7 +38,8 @@ def initialize

conf = YAML::load(ERB.new(IO.read(path)).result)[environment]
api_url = ENV['HEROKUTANK_API_URL'] || conf['api_url']
self.client = IndexTank::ApiClient.new(api_url).get_index(conf['index_name'])
index_name = conf['index_name'] || 'default_index'
self.client = IndexTank::ApiClient.new(api_url).get_index(index_name)
end
def environment
if defined?(Merb)
Expand Down

0 comments on commit 2539e53

Please sign in to comment.