Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
As per my suggestion in #16 — prefer ENV['ELASTICSEARCH_URL'] as th…
Browse files Browse the repository at this point in the history
…e default when it is present.
  • Loading branch information
nz committed Feb 13, 2012
1 parent ef07c1e commit 49633d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elastic_searchable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module ElasticSearchable
include HTTParty
format :json
base_uri 'localhost:9200'
base_uri ENV['ELASTICSEARCH_URL'] || 'localhost:9200'

class ElasticError < StandardError; end
class << self
Expand Down

0 comments on commit 49633d2

Please sign in to comment.