Module: RubyCms::VisitorErrorCapture
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/ruby_cms/visitor_error_capture.rb
Overview
Include in ApplicationController to capture public-site errors to VisitorError. Skips admin controllers (paths under /admin) and development environment by default.
Usage in ApplicationController:
include RubyCms::VisitorErrorCapture
rescue_from StandardError, with: :handle_visitor_error
Or use the class method to add both:
RubyCms::VisitorErrorCapture.install(self)