cncflora_commons 0.0.5 → 0.0.6
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
@@ -115,11 +115,15 @@ def setup(file)
|
|
115
115
|
end
|
116
116
|
|
117
117
|
if ENV["PREFIX"] then
|
118
|
-
set :prefix,
|
118
|
+
set :prefix, #{ENV["PREFIX"]}
|
119
119
|
else
|
120
120
|
set :prefix, ""
|
121
121
|
end
|
122
122
|
|
123
|
+
if settings.prefix.length >= 1 then
|
124
|
+
set :prefix, "#{settings.prefix}_"
|
125
|
+
end
|
126
|
+
|
123
127
|
config = etcd2settings(ENV["ETCD"] || settings.etcd,settings.prefix)
|
124
128
|
|
125
129
|
config[:strings] = JSON.parse(File.read("src/locales/#{settings.lang}.json", :encoding => "BINARY"))
|