Permalink
Browse files

Set elasticsearch index via config

  • Loading branch information...
1 parent 60cd6db commit f86385936b36561f2bddb4f77397e76c716b1dff @rwdaigle committed Oct 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/initializers/elasticsearch.rb
@@ -4,7 +4,7 @@
# Optional, but recommended: use a single index per application per environment
app_name = Rails.application.class.parent_name.underscore.dasherize
-ELASTICSEARCH_INDEX_NAME = "#{app_name}-#{Rails.env}"
+ELASTICSEARCH_INDEX_NAME = ENV['ELASTICSEARCH_INDEX_NAME']
module Tire
class Logger

0 comments on commit f863859

Please sign in to comment.