Sha256: fd564a8df26396b9b7ce7dde10ba46a7d57fa7bbd8e2accd7a857f043fd67681
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
module Martinet # HTTP/Warden session-specific behavior. class Session def initialize(warden) @warden = warden end def current_user @warden.user end def signed_in? @warden.user end def sign_in!(user) @warden.set_user(user) end def sign_out! @warden.logout end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
martinet-0.0.2 | lib/martinet/session.rb |
martinet-0.0.1 | lib/martinet/session.rb |