Sha256: fdd7aa4f697cdcb69b9507928bec39cf300b1392dae548a773ad7c454cd5ff41

Contents?: true

Size: 244 Bytes

Versions: 42

Compression:

Stored size: 244 Bytes

Contents

require 'ostruct'
require 'yaml'

config = OpenStruct.new(YAML.load_file("#{RAILS_ROOT}/config/config.yml"))
env_config = config.send(RAILS_ENV)
config.common.update(env_config) unless env_config.nil?
::AppConfig = OpenStruct.new(config.common)

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
lipsiadmin-5.1.9 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.8 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.7 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.6 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.5 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.4 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.3 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.2 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.1 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.1.0 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.9 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.8 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.7 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.6 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.5 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.4 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-4.1.8 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.0 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.1 lipsiadmin_generators/backend/templates/config/initializers/config.rb
lipsiadmin-5.0.2 lipsiadmin_generators/backend/templates/config/initializers/config.rb