summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-07 17:19:21 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-19 19:30:10 +0100
commit3ec01e576e52bf4ef6638701854ad8d1395bf285 (patch)
treeaef34d9bca60296a45c92350d8fc24428635592d
parent766f9cf2202e7dbab758db4e03bc0e82500943eb (diff)
downloadgitlab-ce-3ec01e576e52bf4ef6638701854ad8d1395bf285.tar.gz
implements branches filter functionality and tests accordingly
refactors find_similar_branches method to a one liner
-rw-r--r--app/models/repository.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index bffcd501986..ed7c19eb181 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -127,7 +127,6 @@ class Repository
def find_similar_branches(search)
raw_repository.branches.select { |branch| branch.name.include?(search) }
-
end
def find_branch(name)