summaryrefslogtreecommitdiff
path: root/app/models/container_repository.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 15:10:15 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 15:10:15 +0200
commit83d1fe9b5aeb947c1387666205ecaca81f2bf3a2 (patch)
treef5cd91c67ffbc179f051b9fd75abe6a281b2827c /app/models/container_repository.rb
parent00319e595ab52906d12ef027a10e08ac92ea1337 (diff)
downloadgitlab-ce-83d1fe9b5aeb947c1387666205ecaca81f2bf3a2.tar.gz
Add serveral minor improvements to container registry
Diffstat (limited to 'app/models/container_repository.rb')
-rw-r--r--app/models/container_repository.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb
index e27369c10d6..ceb82af2e95 100644
--- a/app/models/container_repository.rb
+++ b/app/models/container_repository.rb
@@ -4,7 +4,8 @@ class ContainerRepository < ActiveRecord::Base
validates :name, length: { minimum: 0, allow_nil: false }
delegate :client, to: :registry
- before_destroy :delete_tags
+
+ before_destroy :delete_tags!
def registry
@registry ||= begin