Sha256: 2992aba509a9927fe114c29490383b13cb3b54eabdd5fc72983c8ec81d3cb496
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
class RollbarHelper VERSION = "0.1.0" class << self def error(obj, extra = {}, fingerprint: nil) e = nil if obj.is_a?(Exception) e = obj else e = StandardError.new(obj.to_s) e.set_backtrace(caller) end if fingerprint.present? Rollbar.scope(:fingerprint => fingerprint).error(e, **extra) else Rollbar.error(e, **extra) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rollbar_helper-0.1.0 | lib/rollbar_helper.rb |