Sha256: fba3400528b1021dfb2a7523d49be1affa3f47570ce5b332a42358b97da8e73c

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require 'active_record'

module ActiveRecord
  module ConnectionAdapters
    class ExceptionAdapter
      class Error < StandardError
        attr_reader :config

        def initialize(config)
          super("Do NOT use me: #{config.inspect}")
          @config = config
        end
      end

      def initialize(config)
        raise Error.new(config)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-exception-adapter-0.1.0 lib/active_record/connection_adapters/exception_adapter.rb