Sha256: d4591b3de2226e60072242252e24416eb63afc044d4c826de9d36ca5193e0492

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module ActiveRecordMysqlXverify
  module ErrorHandler
    def execute(*)
      super
    rescue StandardError
      _flag_extend_verify!
      raise
    end

    def _flag_extend_verify!
      Thread.current[ActiveRecordMysqlXverify::EXTEND_VERIFY_FLAG] = true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_record_mysql_xverify-0.2.2 lib/active_record_mysql_xverify/error_handler.rb
active_record_mysql_xverify-0.2.1 lib/active_record_mysql_xverify/error_handler.rb
active_record_mysql_xverify-0.2.0 lib/active_record_mysql_xverify/error_handler.rb
active_record_mysql_xverify-0.1.1 lib/active_record_mysql_xverify/error_handler.rb