Class: Booth::Requests::Agent
- Inherits:
-
Object
- Object
- Booth::Requests::Agent
- Includes:
- Calls
- Defined in:
- lib/booth/requests/agent.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |