Class: Crashbreak::DefaultSummarySerializer
- Inherits:
-
SummarySerializer
- Object
- BasicSerializer
- SummarySerializer
- Crashbreak::DefaultSummarySerializer
- Defined in:
- lib/crashbreak/serializers/default_summary_serializer.rb
Instance Method Summary collapse
Methods inherited from SummarySerializer
Instance Method Details
#summary ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/crashbreak/serializers/default_summary_serializer.rb', line 3 def summary { action: request.env['PATH_INFO'], controller_name: controller.class.to_s, file: exception.backtrace[0], url: request.env['REQUEST_URI'], user_agent: request.env['HTTP_USER_AGENT'] } end |