Class: Booth::Sessions::HistoricalLocations

Inherits:
Object
  • Object
show all
Includes:
MethodObject
Defined in:
lib/booth/sessions/historical_locations.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject

TODO: Show IPs for cities that are different from the most recent IP.



9
10
11
12
13
# File 'lib/booth/sessions/historical_locations.rb', line 9

def call
  return if historical_locations.values.blank?

  historical_locations.values.reject { _1 == location }.uniq.sort.join(', ').presence
end