diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 22:37:20 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 22:37:20 +0300 |
commit | 03f41e2820d76d272aa7357cf726b5d131bb80e0 (patch) | |
tree | 8f9b317572899049d43de0d72194b9b50da1648e /app/models/tree.rb | |
parent | 0c5795a49726402d2f2751d8b05d5bbb9dd23511 (diff) | |
download | gitlab-ce-03f41e2820d76d272aa7357cf726b5d131bb80e0.tar.gz |
Gitlab::Git::Tree & Blob added
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r-- | app/models/tree.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb index e726c596f7e..042050527c1 100644 --- a/app/models/tree.rb +++ b/app/models/tree.rb @@ -1,14 +1,10 @@ class Tree - attr_accessor :path, :tree, :ref + attr_accessor :raw def initialize(repository, sha, ref = nil, path = nil) @raw = Gitlab::Git::Tree.new(repository, sha, ref, path) end - def invalid? - @raw.nil? - end - def method_missing(m, *args, &block) @raw.send(m, *args, &block) end |