Sha256: 0adac75333e819290086492a790151673eb8bb32572b581f2a16ae117d076da4
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Exceptron module LocalHelpers def application_trace clean_backtrace(exception, :silent) end def framework_trace clean_backtrace(exception, :noise) end def full_trace clean_backtrace(exception, :all) end def debug_hash(hash) hash.map { |k, v| "#{k}: #{v.inspect}" }.sort.join("\n") end protected def clean_backtrace(exception, *args) Rails.respond_to?(:backtrace_cleaner) && Rails.backtrace_cleaner ? Rails.backtrace_cleaner.clean(exception.backtrace, *args) : exception.backtrace end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exceptron-0.0.2 | lib/exceptron/local_helpers.rb |