lib/active_graph/config.rb in activegraph-11.4.0 vs lib/active_graph/config.rb in activegraph-11.5.0.alpha.1
- old
+ new
@@ -24,10 +24,9 @@
@default_file = File.expand_path(file_path)
end
# @return [Hash] the default file loaded by yaml
def defaults
- require 'yaml'
@defaults ||= ActiveSupport::HashWithIndifferentAccess.new(YAML.load_file(default_file))
end
# Reads from the default_file if configuration is not set already
# @return [Hash] the configuration