Sha256: 5cbfcf2057b1a31a003eeb81a74d446d9315814e43113775ab0021d0a5c5b25b
Contents?: true
Size: 538 Bytes
Versions: 9
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true # Load gem Config if present # @see https://rubygems.org/gems/config begin require 'config' if defined?(Config) config_conf = [ File.join(Dir.pwd, 'config', 'settings.yml'), File.join(Dir.pwd, 'config', 'settings', "#{ENV['RAILS_ENV']}.yml") ] Config.load_and_set_settings(config_conf) end rescue LoadError => exception puts 'Custom configuration is not present,' \ " use default configuration. (#{exception})" rescue StandardError => exception puts exception end
Version data entries
9 entries across 9 versions & 1 rubygems