diff --git a/lib/searchkick.rb b/lib/searchkick.rb index df39b68..9874043 100644 --- a/lib/searchkick.rb +++ b/lib/searchkick.rb @@ -140,7 +140,7 @@ module Searchkick end def self.search(term = "*", model: nil, **options, &block) - if Searchkick.relation?(model) + if relation?(model) raise Error, "search must be called on model, not relation" end -- libgit2 0.21.0