diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-29 22:21:06 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-29 22:21:06 +0200 |
commit | e28d1fa3cc2e8c2f696f6740c8a8441100542470 (patch) | |
tree | e353ecddd503675ed9154331d105e423d1f43ce8 /lib/api/project_snippets.rb | |
parent | 47698071d9685b763b2ba87f99b62c36d7735299 (diff) | |
download | gitlab-ce-e28d1fa3cc2e8c2f696f6740c8a8441100542470.tar.gz |
Use a query in Project#protected_branch?
This changes Project#protected_branch? to use a query to check if a
branch is protected, instead of loading all ProtectedBranch records into
memory just to check if the list of names includes a given branch name.
Diffstat (limited to 'lib/api/project_snippets.rb')
0 files changed, 0 insertions, 0 deletions