Sha256: b6877362ea2e10be2446dfcf7eef7af0c272a397ea4754ee5851901bccdec823
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
config = {} begin config = YAML.load(ERB.new(File.read(Rails.root.join('config', 'got_fixed.yml'))).result) rescue Errno::ENOENT # Could not find the config/got_fixed.yml file end # https://gist.github.com/ssaunier/3866812 def symbolize(object) if object.kind_of? Hash object.keys.each do |k| object[k.to_sym] = symbolize(object.delete k) end object elsif object.kind_of? Array object.map { |e| symbolize e } else object end end GotFixed.config = symbolize(config) GotFixed.config[:github] ||= []
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
got_fixed-0.0.6 | config/initializers/got_fixed.rb |
got_fixed-0.0.5 | config/initializers/got_fixed.rb |
got_fixed-0.0.4 | config/initializers/got_fixed.rb |