lib/fozzie/configuration.rb in fozzie-0.0.9 vs lib/fozzie/configuration.rb in fozzie-0.0.10
- old
+ new
@@ -13,12 +13,11 @@
self
end
def data_prefix
- s = env
- s = [appname, s].join('.').strip unless appname.nil? || appname.empty?
- s
+ s = [appname, env].collect {|s| s.empty? ? nil : s }.compact.join('.').strip
+ (s.empty? ? nil : s)
end
private
# Handle the merging of the given configuaration, and the default config.
\ No newline at end of file