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:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-05 20:59:46 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-06 12:56:21 +0300
commitf16377e7dc762462817dd0b34e36811c55988b10 (patch)
tree0c2848cee6743f0648e2c3d9361d201aca7fbf1a /app/controllers/projects/protected_tags_controller.rb
parent18506d4b8b8bc780b3b1e4c61339af38b5c49bb2 (diff)
Protected Tags backend review changes
Added changelog
Diffstat (limited to 'app/controllers/projects/protected_tags_controller.rb')
-rw-r--r--app/controllers/projects/protected_tags_controller.rb18
1 files changed, 3 insertions, 15 deletions
diff --git a/app/controllers/projects/protected_tags_controller.rb b/app/controllers/projects/protected_tags_controller.rb
index 0e00baedbdf..c61ddf145e6 100644
--- a/app/controllers/projects/protected_tags_controller.rb
+++ b/app/controllers/projects/protected_tags_controller.rb
@@ -1,32 +1,20 @@
class Projects::ProtectedTagsController < Projects::ProtectedRefsController
protected
- def protected_ref
- @protected_tag
- end
-
- def protected_ref=(val)
- @protected_tag = val
- end
-
- def matching_refs=(val)
- @matching_tags = val
- end
-
def project_refs
@project.repository.tags
end
- def create_service
+ def create_service_class
::ProtectedTags::CreateService
end
- def update_service
+ def update_service_class
::ProtectedTags::UpdateService
end
def load_protected_ref
- self.protected_ref = @project.protected_tags.find(params[:id])
+ @protected_ref = @project.protected_tags.find(params[:id])
end
def protected_ref_params