Sha256: 89abd7ce72c5080fb35b0c6d8b3d5ae4e6f7c997fda5961c3bda72f7be2b1ec2
Contents?: true
Size: 977 Bytes
Versions: 8
Compression:
Stored size: 977 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
8 entries across 8 versions & 1 rubygems