Sha256: ec9f55bd986c151b0e67c2f27bf6411fe6d142368b81e61f1067d5222a17a841
Contents?: true
Size: 974 Bytes
Versions: 25
Compression:
Stored size: 974 Bytes
Contents
# frozen_string_literal: true require 'config' Config.setup do |config| # Name of the constant exposing loaded settings config.const_name = 'Settings' # Load environment variables from the `ENV` object and override any # settings defined in files. config.use_env = true # Define ENV variable prefix deciding which variables to load into # config. config.env_prefix = 'SETTINGS' # What string to use as level separator for settings loaded from ENV # variables. Default value of '.' works well with Heroku, but you might # want to change it for example for '__' to easy override settings from # command line, where using dots in variable names might not be allowed # (eg. Bash). config.env_separator = '__' # Ability to process variables names: # * nil - no change # * :downcase - convert to lower case config.env_converter = :downcase end Config.load_and_set_settings( File.join(__dir__, '../../..', 'config/settings.yml') )
Version data entries
25 entries across 25 versions & 1 rubygems