Sha256: 90b902afeeeebf4b82b6ecc529ff33a44356caf9b8bca4a0309c375332df7493

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module FreshConnection
  class ExecutorHook
    class << self
      def run
      end

      def complete(*args)
        ReplicaConnectionHandler.instance.put_aside!
      end

      def install_executor_hooks
        ActiveSupport::Executor.register_hook(self)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fresh_connection-2.4.4 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.3 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.2 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.1 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.0 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.0.rc4 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.0.rc3 lib/fresh_connection/executor_hook.rb
fresh_connection-2.4.0.rc1 lib/fresh_connection/executor_hook.rb