Class: Booth::Requests::Agent

Inherits:
Object
  • Object
show all
Includes:
Calls
Defined in:
lib/booth/requests/agent.rb

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
# File 'lib/booth/requests/agent.rb', line 10

def call
  # Truncate to prevent potential cookie overflows and DB bloating.
  request.user_agent.to_s.truncate(255).presence
end