lib/elasticsearch/git/model.rb in gitlab-elasticsearch-git-0.0.9 vs lib/elasticsearch/git/model.rb in gitlab-elasticsearch-git-0.0.10
- old
+ new
@@ -13,13 +13,13 @@
include Elasticsearch::Model
env = if defined?(::Rails)
::Rails.env.to_s
else
- "undefined"
+ nil
end
- index_name [self.name.downcase, 'index', env].join('-')
+ index_name [self.name.downcase, 'index', env].compact.join('-')
settings \
index: {
analysis: {
analyzer: {