Sha256: 5c98baddcb48a03e6d0257ec0f7162987655f11e5eda88ef0d134de73acf7bb0
Contents?: true
Size: 356 Bytes
Versions: 1
Compression:
Stored size: 356 Bytes
Contents
module Tartarus::Rescue def self.included(base) base.class_eval do alias_method_chain :rescue_action, :tartarus end end def rescue_action_with_tartarus(exception) if response_code_for_rescue(exception) == :internal_server_error Tartarus.log(self, exception) end rescue_action_without_tartarus(exception) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tartarus-1.0.0 | lib/tartarus/rescue.rb |