Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.289 kB
module Juggernaut
def self.[](key)
unless @config
raw_config = File.read("#{Rails.root}/config/juggernaut.yml")
@config = YAML.load(raw_config)[Rails.env].symbolize_keys
end
@config[key]
end
def self.[]=(key, value)
@config[key.to_sym] = value
end
end
Jump to Line
Something went wrong with that request. Please try again.