Sha256: 12b72565d1ce8aaa25a5bb7b78ee739f0bc1bb5740ee44574451e5e58d7d498f
Contents?: true
Size: 301 Bytes
Versions: 5
Compression:
Stored size: 301 Bytes
Contents
require 'open-uri' require 'net/https' module Net class HTTP alias_method :original_use_ssl=, :use_ssl= def use_ssl=(flag) self.ca_file = Rails.root.join('lib/ca-bundle.crt').to_s self.verify_mode = OpenSSL::SSL::VERIFY_PEER self.original_use_ssl = flag end end end
Version data entries
5 entries across 5 versions & 1 rubygems