Module: Sentry::Rails::ControllerMethods
- Defined in:
- lib/sentry/rails/controller_methods.rb
Instance Method Summary collapse
- #capture_exception(exception, options = {}) ⇒ Object
- #capture_message(message, options = {}) ⇒ Object
Instance Method Details
#capture_exception(exception, options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/sentry/rails/controller_methods.rb', line 12 def capture_exception(exception, = {}) with_request_scope do Sentry::Rails.capture_exception(exception, **) end end |
#capture_message(message, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/sentry/rails/controller_methods.rb', line 6 def (, = {}) with_request_scope do Sentry::Rails.(, **) end end |