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/container_repository.rb')
-rw-r--r--app/models/container_repository.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb
index 149d65ddbff..b128069ca0e 100644
--- a/app/models/container_repository.rb
+++ b/app/models/container_repository.rb
@@ -42,6 +42,12 @@ class ContainerRepository < ActiveRecord::Base
ContainerRegistry::Blob.new(self, config)
end
+ # TODO, specs needed
+ #
+ def has_tags?
+ tags.any?
+ end
+
# TODO, add bang to this method
#
def delete_tags
@@ -53,12 +59,6 @@ class ContainerRepository < ActiveRecord::Base
end
end
- # TODO, specs needed
- #
- def empty?
- tags.none?
- end
-
# TODO, we will return a new ContainerRepository object here
#
def self.project_from_path(repository_path)