summaryrefslogtreecommitdiff
path: root/app/models/tree.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 21:09:18 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 21:09:18 +0200
commit39ba934c0a65f571214998e056e925b61f389360 (patch)
treea1da1af6df76e1d49feffd48a6247ced3abd5684 /app/models/tree.rb
parente6c0673ef1108a93928c4d88ba273e12616b836b (diff)
downloadgitlab-ce-39ba934c0a65f571214998e056e925b61f389360.tar.gz
REpostiry, Team models
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index c3dfd4c718c..96395a42394 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -1,12 +1,13 @@
class Tree
include Linguist::BlobHelper
- attr_accessor :path, :tree, :project, :ref
+
+ attr_accessor :path, :tree, :ref
delegate :contents, :basename, :name, :data, :mime_type,
:mode, :size, :text?, :colorize, to: :tree
- def initialize(raw_tree, project, ref = nil, path = nil)
- @project, @ref, @path = project, ref, path
+ def initialize(raw_tree, ref = nil, path = nil)
+ @ref, @path = ref, path
@tree = if path.present?
raw_tree / path
else