lib/settingslogic.rb in settingslogic-2.0.0 vs lib/settingslogic.rb in settingslogic-2.0.1

- old
+ new

@@ -48,11 +48,12 @@ def initialize(hash_or_file = self.class.source) case hash_or_file when Hash self.update hash_or_file else - self.update YAML.load(ERB.new(File.read(hash_or_file)).result).to_hash - self.update self[self.class.namespace] if self.class.namespace + hash = YAML.load(ERB.new(File.read(hash_or_file)).result).to_hash + hash = hash[self.class.namespace] if self.class.namespace + self.update hash end define_settings! end \ No newline at end of file