Class: Booth::Sessions::HistoricalLocations
- Inherits:
-
Object
- Object
- Booth::Sessions::HistoricalLocations
- Includes:
- MethodObject
- Defined in:
- lib/booth/sessions/historical_locations.rb
Instance Method Summary collapse
-
#call ⇒ Object
TODO: Show IPs for cities that are different from the most recent IP.
Methods included from MethodObject
Instance Method Details
#call ⇒ Object
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 |