Commit 6d38fd58e77579c88869e409a9961ee0829c2f83

Authored by Andrew Kane
1 parent 6a207383

Improved code [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick.rb
... ... @@ -140,7 +140,7 @@ module Searchkick
140 140 end
141 141  
142 142 def self.search(term = "*", model: nil, **options, &block)
143   - if Searchkick.relation?(model)
  143 + if relation?(model)
144 144 raise Error, "search must be called on model, not relation"
145 145 end
146 146  
... ...