Skip to content
Snippets Groups Projects
Commit d74246ad authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

change search service to return not only the results

parent 14cfde0d
No related branches found
No related tags found
No related merge requests found
class ScoreCalculatorService
def initialize(object)
@object = object
@class = @object.class.name
......
......@@ -3,9 +3,9 @@ module SearchService
class InvalidSearchError < StandardError; end
def self.search(search, user)
def self.search(search, user, results = true)
model = instance(search, user)
model.search.results
results ? model.search.results : model.search
end
def self.autocomplete(search, user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment