From ee5eed54f974b7c7a88f84936e95b4acaac7cdfb Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 17 Mar 2020 23:23:23 -0700 Subject: [PATCH] Removed relation option [skip ci] --- lib/searchkick.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/searchkick.rb b/lib/searchkick.rb index 69263dc..e6f9e4d 100644 --- a/lib/searchkick.rb +++ b/lib/searchkick.rb @@ -88,7 +88,7 @@ module Searchkick @server_below7 end - def self.search(term = "*", model: nil, relation: nil, **options, &block) + def self.search(term = "*", model: nil, **options, &block) options = options.dup klass = model @@ -114,7 +114,7 @@ module Searchkick end options = options.merge(block: block) if block - if relation || (relation.nil? && Searchkick.relation) + if Searchkick.relation Searchkick::Relation.new(klass, term, **options) else query = Searchkick::Query.new(klass, term, **options) -- libgit2 0.21.0