Sha256: 21b11aa3cb9ce80dfe52c27ea4ad3d3c4f508e37f043c4d713b722daeabd07b8
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
module Raygun class Configuration # Your Raygun API Key - this can be found on your dashboard at Raygun.io attr_accessor :api_key # Array of exception classes to ignore attr_accessor :ignore # Version to use attr_accessor :version # Custom Data to send with each exception attr_accessor :custom_data # Logger to use when if we find an exception :) attr_accessor :logger # Should we silence exception reporting (e.g in Development environments) attr_accessor :silence_reporting # Failsafe logger (for exceptions that happen when we're attempting to report exceptions) attr_accessor :failsafe_logger # Exception classes to ignore by default IGNORE_DEFAULT = ['ActiveRecord::RecordNotFound', 'ActionController::RoutingError', 'ActionController::InvalidAuthenticityToken', 'CGI::Session::CookieStore::TamperedWithCookie', 'ActionController::UnknownAction', 'AbstractController::ActionNotFound', 'Mongoid::Errors::DocumentNotFound'] def initialize # set default attribute values @ignore = IGNORE_DEFAULT @custom_data = {} @silence_reporting = false end def [](key) send(key) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-0.0.6 | lib/raygun/configuration.rb |
raygun4ruby-0.0.5 | lib/raygun/configuration.rb |
raygun4ruby-0.0.4 | lib/raygun/configuration.rb |