Sha256: 641f81c595b3a58ced5c33f7eef1812f8204c44c547e52f1b26206e9426a8497

Contents?: true

Size: 484 Bytes

Versions: 48

Compression:

Stored size: 484 Bytes

Contents

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

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
restpack_web-0.2.21 lib/restpack_web/sinatra/app.rb
restpack_web-0.2.20 lib/restpack_web/sinatra/app.rb
restpack_web-0.2.19 lib/restpack_web/sinatra/app.rb
restpack_web-0.2.18 lib/restpack_web/sinatra/app.rb
restpack_web-0.2.17 lib/restpack_web/sinatra/app.rb
restpack-web-0.2.26 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.25 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.24 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.23 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.22 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.21 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.20 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.19 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.18 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.17 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.16 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.15 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.14 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.13 lib/restpack-web/sinatra/app.rb
restpack-web-0.2.12 lib/restpack-web/sinatra/app.rb