Sha256: b5550c2def49ac7fb4b10be606dd99a702a186ed66d2830000c44409a4ff8028
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
require 'rails' require 'exception_notification' require 'whoopsie/engine' require 'whoopsie/railtie' module Whoopsie class << self def report_and_swallow yield rescue StandardError => e handle_exception(e) end def handle_exception(exception, data = {}) return ExceptionNotifier.notify_exception(exception, data) if Rails.application.config.whoopsie.enable fail(exception) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whoopsie-0.0.2 | lib/whoopsie.rb |