Sha256: 9b57ac21dd26119425cffa5d329a77dfa05f2c0058912f731c616a2f94c967e8

Contents?: true

Size: 419 Bytes

Versions: 21

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require "redis"

module NeetoCommonsBackend
  module Initializers
    def self.redis_client_patch
      ::Redis.class_eval do
        alias_method :old_initialize, :initialize

        def initialize(my_options = {})
          options = my_options.merge({ ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } })
          old_initialize(options)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.89 lib/neeto_commons_backend/initializers/redis_client_patch.rb