summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 22:34:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 22:34:10 +0300
commit60869580023da553613ee18bcdbc8682ebdde2cf (patch)
tree555737ff9f3da49808730f37f91333370b20a74a /app/controllers/projects
parentd7b91fb596e50411c0adb5aa8fb17341087f3f57 (diff)
downloadgitlab-ce-60869580023da553613ee18bcdbc8682ebdde2cf.tar.gz
Rename image to container_registry
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/container_registry_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/container_registry_controller.rb b/app/controllers/projects/container_registry_controller.rb
index 94f7580f0ea..82c621b29e4 100644
--- a/app/controllers/projects/container_registry_controller.rb
+++ b/app/controllers/projects/container_registry_controller.rb
@@ -1,6 +1,6 @@
class Projects::ContainerRegistryController < Projects::ApplicationController
- before_action :authorize_read_image!
- before_action :authorize_update_image!, only: [:destroy]
+ before_action :authorize_read_container_registry!
+ before_action :authorize_update_container_registry!, only: [:destroy]
before_action :tag, except: [:index]
layout 'project'
@@ -23,6 +23,6 @@ class Projects::ContainerRegistryController < Projects::ApplicationController
end
def tag
- @tag ||= container_registry[params[:id]]
+ @tag ||= container_registry_repository[params[:id]]
end
end