frankfurter/config/app.rb

17 lines
253 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['APP_ENV'] || 'development'
2014-03-14 13:08:48 +01:00
end
def root
2017-11-09 13:59:19 +01:00
Pathname.new(File.expand_path('..', __dir__))
2014-03-14 13:08:48 +01:00
end
end
end