Sha256: 3c39a43bf529f163e3d103d8d9e3d94e1eb3a23ab75bf381cbc4e337d88adf0a
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 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'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tartarus-1.0.1 | lib/tartarus.rb |