cncflora_commons 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +5 -1
  2. metadata +1 -1
@@ -129,8 +129,12 @@ def setup(file)
129
129
  config[:strings] = JSON.parse(File.read("src/locales/#{settings.lang}.json", :encoding => "BINARY"))
130
130
  config[:elasticsearch] = "#{config[:datahub]}/#{settings.db}"
131
131
  config[:couchdb] = "#{ config[:datahub] }/#{settings.db}"
132
- config[:base] = settings.base
133
132
  config[:context] = settings.context
133
+ if settings.prefix.length >= 1 then
134
+ config[:base] = "#{settings.prefix}_#{settings.base}"
135
+ else
136
+ config[:base] = settings.base
137
+ end
134
138
 
135
139
  config.keys.each { |key| set key, config[key] }
136
140
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: