summaryrefslogtreecommitdiff
path: root/lib/api/project_snippets.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-29 22:21:06 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-29 22:21:06 +0200
commite28d1fa3cc2e8c2f696f6740c8a8441100542470 (patch)
treee353ecddd503675ed9154331d105e423d1f43ce8 /lib/api/project_snippets.rb
parent47698071d9685b763b2ba87f99b62c36d7735299 (diff)
downloadgitlab-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