lib/complex_config/proxy.rb in complex_config-0.13.1 vs lib/complex_config/proxy.rb in complex_config-0.13.2

- old
+ new

@@ -33,13 +33,11 @@ __send__(method_name, *args) else config = ::ComplexConfig::Provider[name] (class << self; self; end).class_eval do define_method(name) do |env = nil| - if env - config[env] - elsif @env - config[@env] + if env ||= @env + config[env] || ::ComplexConfig::Settings.new else config end end end