Class: Projects::Ml::ModelFinder

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

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ModelFinder

Returns a new instance of ModelFinder.



6
7
8
# File 'app/finders/projects/ml/model_finder.rb', line 6

def initialize(project)
  @project = project
end

Instance Method Details

#executeObject



10
11
12
13
14
15
# File 'app/finders/projects/ml/model_finder.rb', line 10

def execute
  ::Ml::Model
    .by_project(@project)
    .including_latest_version
    .limit(100) # This is a temporary limit before we add pagination
end