Sha256: 779c47c75be8caee399680599232053f5f618e7385e2d21712549a68b7032dc9
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
require 'deal_with_it/version' require 'deal_with_it/handler' module DealWithIt def self.included(klass) Rails.application.eager_load! if defined?(Rails) && !Rails.env.production? klass.class_eval do DealWithIt::Handler.descendants.each do |rescuer| rescuer_instance = rescuer.instance_variable_get(:@handler) rescue_from rescuer_instance.exception, with: rescuer_instance.callback end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deal_with_it-0.1.0 | lib/deal_with_it.rb |