paging and a little styling

This commit is contained in:
2015-09-21 20:40:07 -05:00
parent c425f63ee9
commit d123e63b76
18 changed files with 71 additions and 30 deletions

View File

@ -1,11 +1,13 @@
require 'yaml'
module Secrets
def self.load
return nil unless File.exist?("./config/application.yml")
secrets = YAML.load(File.read('./config/application.yml'))
secrets.each do |k, v|
ENV[k] = v
end
end
end
# require 'yaml'
# module Secrets
# def self.load
# binding.pry
#
# return nil unless File.exist?("./config/application.yml")
#
# secrets = YAML.load(File.read('./config/application.yml'))
# secrets.each do |k, v|
# ENV[k] = v
# end
# end
# end