Sha256: c2a09862c431e16a2995b7f1348929d5a77ddc3b5a265be5e6f90a3f8b4ded7c
Contents?: true
Size: 500 Bytes
Versions: 6
Compression:
Stored size: 500 Bytes
Contents
require 'active_support/core_ext/hash/indifferent_access' module GeoWorks module Geoblacklight def config @config ||= config_yaml.with_indifferent_access end private def config_yaml file = File.join(GeoWorks.root, 'config', 'geoblacklight.yml') file = File.join(Rails.root, 'config', 'geoblacklight.yml') unless File.exist? file YAML.load(ERB.new(File.read(file)).result)[Rails.env] end module_function :config, :config_yaml end end
Version data entries
6 entries across 6 versions & 1 rubygems