REpostiry, Team models
This commit is contained in:
parent
e6c0673ef1
commit
39ba934c0a
31 changed files with 329 additions and 315 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue