Class: CustomLogs::ParseConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/custom_logs/parse_config.rb

Constant Summary collapse

@@config =
nil

Class Method Summary collapse

Class Method Details

.getObject



8
9
10
# File 'lib/custom_logs/parse_config.rb', line 8

def get
  @@config ||= YAML.load_file('config/custom_logs.yml')[Rails.env].with_indifferent_access
end