Commit 805e3c32032c43aceb3af1a72707b90fa5ff6a78
1 parent
14457687
Exists in
master
and in
21 other branches
Updated style
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
lib/searchkick.rb
@@ -40,7 +40,7 @@ module Searchkick | @@ -40,7 +40,7 @@ module Searchkick | ||
40 | @client ||= | 40 | @client ||= |
41 | Elasticsearch::Client.new( | 41 | Elasticsearch::Client.new( |
42 | url: ENV["ELASTICSEARCH_URL"], | 42 | url: ENV["ELASTICSEARCH_URL"], |
43 | - transport_options: {request: {timeout: timeout}, headers: { content_type: 'application/json' }} | 43 | + transport_options: {request: {timeout: timeout}, headers: {content_type: "application/json"}} |
44 | ) do |f| | 44 | ) do |f| |
45 | f.use Searchkick::Middleware | 45 | f.use Searchkick::Middleware |
46 | end | 46 | end |
lib/searchkick/query.rb
@@ -29,7 +29,12 @@ module Searchkick | @@ -29,7 +29,12 @@ module Searchkick | ||
29 | @term = term | 29 | @term = term |
30 | @options = options | 30 | @options = options |
31 | @match_suffix = options[:match] || searchkick_options[:match] || "analyzed" | 31 | @match_suffix = options[:match] || searchkick_options[:match] || "analyzed" |
32 | - @type = @routing = @misspellings_below = @highlighted_fields = nil | 32 | + |
33 | + # prevent Ruby warnings | ||
34 | + @type = nil | ||
35 | + @routing = nil | ||
36 | + @misspellings_below = nil | ||
37 | + @highlighted_fields = nil | ||
33 | 38 | ||
34 | prepare | 39 | prepare |
35 | end | 40 | end |