Sha256: 1418015554d265c2c8b6fb5102dcdbf70d74579e1cd75242e80681c5c76e5f4f
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
module ExceptionHandler class Parse # Init def initialize(app) @app = app end #Exception def call(env) @app.call(env) rescue Exception => exception request = ActionDispatch::Request.new(env) controller = env['action_controller.instance'] ignore = ExceptionHandler::Parser::Ignore.new(exception, request).match? ExceptionHandler::Parser::Data.new(exception, request, controller).save unless ignore raise exception end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exception_handler-0.4.7 | lib/exception_handler/parse.rb |
exception_handler-0.4.6 | lib/exception_handler/parse.rb |