require 'rack-auto-session-domain' module RestPack module Web module Sinatra module App def self.included(base) base.use Rack::AutoSessionDomain base.use RestPack::Web::App base.enable :sessions base.set :session_secret, 'c40b83f9048c497891f0f71e4b040a3f' #TODO: GJ: from restpack config base.before do @restpack = RestPack::Web::Context.new(env) end end end end end end