Method: Blazer.settings

Defined in:
lib/blazer.rb

.settingsObject


116
117
118
119
120
121
122
123
124
125
# File 'lib/blazer.rb', line 116

def self.settings
  @settings ||= begin
    path = Rails.root.join("config", "blazer.yml").to_s
    if File.exist?(path)
      YAML.safe_load(ERB.new(File.read(path)).result, aliases: true)
    else
      {}
    end
  end
end