diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-22 16:50:47 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-22 16:50:47 +0400 |
commit | 3f0d8079557e573871cbb1b62e0f90e4e34853f9 (patch) | |
tree | 8b82246434fd838e29a8738cd3ba6c17a9f18789 /app/models/tree.rb | |
parent | a59b70902143f8f734c00baaa2fb006c073b91d7 (diff) |
file name overflow fixed
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 db9df1312f0..16b23a5e9d3 100644 --- a/app/models/tree.rb +++ b/app/models/tree.rb @@ -22,4 +22,8 @@ class Tree def is_blob? tree.is_a?(Grit::Blob) end + + def empty? + data.blank? + end end |