frankfurter/config/app.rb

19 lines
224 B
Ruby
Raw Normal View History

2014-03-14 13:08:48 +01:00
require 'logger'
require 'pathname'
module App
class << self
attr :logger
def env
ENV['RACK_ENV'] || 'development'
end
def root
Pathname.pwd
end
end
@logger = Logger.new(STDOUT)
end