summaryrefslogtreecommitdiff
path: root/app/models/tree.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-04 14:46:15 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-04 14:46:15 +0200
commit97a4d8aea46fb45894f6e47597320ed2f6a12495 (patch)
tree22303017b20c8caac6ea9aa4a946b1dc96916a65 /app/models/tree.rb
parentbacfad1c651d7b880a07f5f417ccb64693150935 (diff)
downloadgitlab-ce-97a4d8aea46fb45894f6e47597320ed2f6a12495.tar.gz
Improve code according to new gitlab_git
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index ed06cb1a128..4f866f1a33d 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -23,4 +23,8 @@ class Tree
def submodules
@entries.select(&:submodule?)
end
+
+ def sorted_entries
+ trees + blobs + submodules
+ end
end