lib/ballast/configuration.rb in ballast-1.5.3 vs lib/ballast/configuration.rb in ballast-1.6.0

- old
+ new

@@ -21,22 +21,9 @@ sections.each do |section| content = (YAML.load_file("#{root}/config/#{section}.yml") rescue {}).with_indifferent_access self[section] = content[environment] end - enable_dotted_access(self) + self.enable_dotted_access end - - private - # Enables dotted access on a root object and its nested hashes. - # - # @param root [Hash] The hash to manage. - def enable_dotted_access(root) - root.extend(Hashie::Extensions::MethodReader) - root.extend(Hashie::Extensions::MethodQuery) - - root.each do |_, node| - enable_dotted_access(node) if node.is_a?(Hash) - end - end end end \ No newline at end of file