lib/record_loader/base.rb
#
# Load the appropriate configuration files into @config
#
Load the appropriate configuration files into @config
Load the appropriate configuration files into @config
def load_config
      @config = @files.each_with_object({}) do |file, store|
        latest_file = YAML.load_file(file)
        duplicate_keys = store.keys & latest_file.keys
        adapter.logger.warn "Duplicate keys in #{@path}: #{duplicate_keys}" unless duplicate_keys.empty?
        store.merge!(latest_file)
      end
    end
def load_config @config = @files . each_with_object ( { } ) do | file , store | latest_file = YAML . load_file ( file ) duplicate_keys = store . keys & latest_file . keys adapter . logger . warn "Duplicate keys in #{@path}: #{duplicate_keys}" unless duplicate_keys . empty? store . merge! ( latest_file ) end end
Load the appropriate configuration files into @config
Load the appropriate configuration files into @config