Class: Projects::TopicsFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/projects/topics_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(params: {}) ⇒ TopicsFinder

Returns a new instance of TopicsFinder.



10
11
12
# File 'app/finders/projects/topics_finder.rb', line 10

def initialize(params: {})
  @params = params
end

Instance Method Details

#executeObject



14
15
16
17
18
# File 'app/finders/projects/topics_finder.rb', line 14

def execute
  topics = Projects::Topic.order_by_non_private_projects_count
  topics = by_without_projects(topics)
  by_search(topics)
end