Class: Booth::Models::Session

Inherits:
ApplicationRecord show all
Defined in:
lib/booth/models/session.rb

Overview

Essentially the session Cookie in one Browser.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.lifespanObject



25
26
27
# File 'lib/booth/models/session.rb', line 25

def self.lifespan
  ::Booth.config.session_inactivity_lifetime
end

Instance Method Details

#historical_location_namesObject



29
30
31
# File 'lib/booth/models/session.rb', line 29

def historical_location_names
  ::Booth::Core::Sessions::HistoricalLocations.call(self)
end