frankfurter/config/app.rb

17 lines
221 B
Ruby
Raw Normal View History

2015-12-30 20:52:02 +01:00
# frozen_string_literal: true
2017-06-14 22:16:21 +02:00
2014-03-14 13:08:48 +01:00
require 'pathname'
2015-05-25 13:13:05 +02:00
# Encapsulates app configuration
2014-03-14 13:08:48 +01:00
module App
class << self
def env
ENV['RACK_ENV'] || 'development'
end
def root
Pathname.pwd
end
end
end