lib/restpack_web/sinatra/app.rb in restpack_web-0.2.21 vs lib/restpack_web/sinatra/app.rb in restpack_web-0.4.1
- old
+ new
@@ -1,20 +1,13 @@
-require 'rack-auto-session-domain'
+module RestPack::Web::Sinatra
+ module App
+ def self.included(base)
+ base.use RestPack::Web::Rack::Domain
+ base.use RestPack::Web::Rack::Session
+ base.use RestPack::Web::Rack::User
-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
+ base.before do
+ @restpack = RestPack::Web::Context.new(env)
end
end
end
-end
\ No newline at end of file
+end