diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 03:37:22 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-04 03:38:58 +0100 |
commit | 07d7d8e65905a39164b63f55eccdcea8f10f5d14 (patch) | |
tree | 4fc627e0256a787ab80f4483b3d6e2442c26a619 /app/models/protected_tag.rb | |
parent | f9e849c076efb3162a3d951d8aae2e7be3e574f4 (diff) | |
download | gitlab-ce-07d7d8e65905a39164b63f55eccdcea8f10f5d14.tar.gz |
Renamed ProtectedTag push_access_levels to create_access_levels
Diffstat (limited to 'app/models/protected_tag.rb')
-rw-r--r-- | app/models/protected_tag.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/protected_tag.rb b/app/models/protected_tag.rb index a52fe90bb2b..83964095516 100644 --- a/app/models/protected_tag.rb +++ b/app/models/protected_tag.rb @@ -2,11 +2,11 @@ class ProtectedTag < ActiveRecord::Base include Gitlab::ShellAdapter include ProtectedRef - has_many :push_access_levels, dependent: :destroy + has_many :create_access_levels, dependent: :destroy - validates :push_access_levels, length: { is: 1, message: "are restricted to a single instance per protected tag." } + validates :create_access_levels, length: { is: 1, message: "are restricted to a single instance per protected tag." } - accepts_nested_attributes_for :push_access_levels + accepts_nested_attributes_for :create_access_levels def self.protected?(project, ref_name) self.matching(ref_name, protected_refs: project.protected_tags).present? |