diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-04 16:46:15 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-04 16:46:15 +0400 |
commit | 97a4d8aea46fb45894f6e47597320ed2f6a12495 (patch) | |
tree | 22303017b20c8caac6ea9aa4a946b1dc96916a65 /app/models/tree.rb | |
parent | bacfad1c651d7b880a07f5f417ccb64693150935 (diff) |
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.rb | 4 |
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 |