cncflora_commons 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cncflora_commons.rb +5 -1
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -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
|