Sha256: fd394b4f714dd96139537b581e6bc9521483dc51fa0fbed9b1aa2d30a91fe69b

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

module ReactiveRecord

  module Pry

    def self.rescue(&block)
      if defined? PryRescue
        ::Pry::rescue &block
      else
        block.call
      end
    end

    def self.rescued(e)
      ::Pry::rescued(e) if defined?(PryRescue) && !e.is_a?(ReactiveRecord::AccessViolation)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reactive-record-0.7.36 lib/reactive_record/pry.rb