Sha256: 2ce06885944dcbf1b6304c41745975e831b3b0357ff154ee2700ad1be4d285d9
Contents?: true
Size: 360 Bytes
Versions: 5
Compression:
Stored size: 360 Bytes
Contents
# Loads a namespaced config. Similar to the load method in MultiConfig::ORMs::ActiveRecord::Config.path method def load_namespaced_config(file) namespace = File.basename(file, File.extname(file)) config = YAML.load(ERB.new(IO.read(File.expand_path("../config/#{file}", __FILE__))).result) config.inject({}) { |h, (k, v)| h["#{namespace}_#{k}"]=v; h } end
Version data entries
5 entries across 5 versions & 1 rubygems