Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ml/experiment.rb')
-rw-r--r--app/models/ml/experiment.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/ml/experiment.rb b/app/models/ml/experiment.rb
index e4e9baac4c8..a32099e8a0c 100644
--- a/app/models/ml/experiment.rb
+++ b/app/models/ml/experiment.rb
@@ -13,10 +13,6 @@ module Ml
has_internal_id :iid, scope: :project
- def artifact_location
- 'not_implemented'
- end
-
class << self
def by_project_id_and_iid(project_id, iid)
find_by(project_id: project_id, iid: iid)
@@ -26,8 +22,8 @@ module Ml
find_by(project_id: project_id, name: name)
end
- def has_record?(project_id, name)
- where(project_id: project_id, name: name).exists?
+ def by_project_id(project_id)
+ where(project_id: project_id)
end
end
end