Module: Osso::AppConfig
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/osso/lib/app_config.rb', line 7 def self.included(klass) klass.class_eval do use Rack::JSONBodyParser use Rack::Session::Cookie, secret: ENV.fetch('SESSION_SECRET') error ActiveRecord::RecordNotFound do status 404 end set :root, Dir.pwd end end |