module Osso::AppConfig

Public Class Methods

included(klass) click to toggle source
# 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