Sha256: 78560ef30593fa8300299316b33487d39604c110ddc33c2e592f2c0c9949da04
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
require 'yaml' require 'will_paginate' class Tartarus class << self def configuration @cached_config ||= YAML.load_file("#{Rails.root}/config/exceptions.yml")[Rails.env] end def logger_class configuration['logger_class'].constantize end def logging_enabled? configuration['logging_enabled'] == true end def log(controller, exception) logger_class.log(controller, exception) end end end require 'tartarus/logger' require 'tartarus/rescue' require 'tartarus/notifier'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tartarus-1.0.3 | lib/tartarus.rb |