Sha256: ba488609cb0694c588a75d8af4f6374dd49fc45b3f08eebf6b9407cd3fff6d4e
Contents?: true
Size: 280 Bytes
Versions: 6
Compression:
Stored size: 280 Bytes
Contents
require "faraday" module Searchkick class Middleware < Faraday::Middleware def call(env) if env[:method] == :get && env[:url].path.to_s.end_with?("/_search") env[:request][:timeout] = Searchkick.search_timeout end @app.call(env) end end end
Version data entries
6 entries across 6 versions & 1 rubygems