Module: Unifig::Rails

Defined in:
lib/unifig/rails.rb,
lib/unifig/rails/version.rb

Constant Summary collapse

CONFIG_PATH =
File.join('config', 'unifig.yml')
VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.runObject



16
17
18
19
# File 'lib/unifig/rails.rb', line 16

def self.run
  file_path = ::Rails.root.join(CONFIG_PATH)
  Unifig::Init.load_file(file_path, env: ::Rails.env.to_sym) if File.exist?(file_path)
end