Sha256: 9bd33f584e0ba67e833d4f495bef9336f32ceac1d2c55ca80e90d68ff441d9ba
Contents?: true
Size: 452 Bytes
Versions: 5
Compression:
Stored size: 452 Bytes
Contents
# use config file from host app as default config_file = Rails.root.join('config', 'lines_config.yml') # use engine's config file if not exists in host app unless File.exists?(config_file) config_file = Lines::Engine.root.join('config', 'lines_config.yml') end # Load the configuration #CONFIG = YAML.load_file(config_file) CONFIG = YAML.load(ERB.new(File.read(config_file)).result) CONFIG.merge! CONFIG.fetch(Rails.env, {}) CONFIG.symbolize_keys!
Version data entries
5 entries across 5 versions & 2 rubygems