Class: Booth::Hooks::SerializeIntoSession

Inherits:
Object
  • Object
show all
Includes:
Calls
Defined in:
lib/booth/hooks/serialize_into_session.rb

Overview

Persist an authenticated session in the cookie.

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
# File 'lib/booth/hooks/serialize_into_session.rb', line 11

def call
  # This is the ID of the `Booth::Models::Session` record.
  passport.session_id
end