Sha256: 912c1c6d21d56d4c490a6d1e017612c5b75f1a226a8e4d1d6e29cdf9f7e06df3
Contents?: true
Size: 281 Bytes
Versions: 2
Compression:
Stored size: 281 Bytes
Contents
module Tynn::Session RACK_SESSION = "rack.session".freeze # :nodoc: def self.setup(app, options = {}) # :nodoc: options = options.dup options[:http_only] ||= true app.use(Rack::Session::Cookie, options) end def session return env[RACK_SESSION] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tynn-0.0.4 | lib/tynn/session.rb |
tynn-0.0.3 | lib/tynn/session.rb |