diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-03 20:59:58 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-03 21:19:54 +0300 |
commit | bf3cc824e4ce6cf49a82210eaaf1cca06f7fd281 (patch) | |
tree | 04d422fe8b68079ef604348ffe96b1f2b72285ff /app/helpers/tags_helper.rb | |
parent | b8c7bef5c092152ea85d1840e587cfc04293e1d7 (diff) |
Moved Project#protected_branch? to ProtectedBranch, similar for tags
Diffstat (limited to 'app/helpers/tags_helper.rb')
-rw-r--r-- | app/helpers/tags_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index 6672e3da348..31aaf9e5607 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -23,6 +23,6 @@ module TagsHelper end def protected_tag?(project, tag) - project.protected_tag?(tag.name) + ProtectedTag.protected?(project, tag.name) end end |