Skip to content

Commit

Permalink
better docs for Sunspot::Search::HitEnumerable#verified_hits (sunspot…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad authored and evan-duncan committed Mar 2, 2021
1 parent f6898a6 commit 3c9279d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sunspot/lib/sunspot/search/hit_enumerable.rb
Expand Up @@ -11,6 +11,9 @@ def hits(options = {})
end
end

#
# Returns all of the hits that have a result
#
def verified_hits
hits.select { |h| h.result }
end
Expand Down

0 comments on commit 3c9279d

Please sign in to comment.