cosmetical cleanup of models
This commit is contained in:
parent
2a4359a572
commit
841e4fbd08
18 changed files with 108 additions and 226 deletions
|
@ -2,16 +2,8 @@ class Tree
|
|||
include Linguist::BlobHelper
|
||||
attr_accessor :path, :tree, :project, :ref
|
||||
|
||||
delegate :contents,
|
||||
:basename,
|
||||
:name,
|
||||
:data,
|
||||
:mime_type,
|
||||
:mode,
|
||||
:size,
|
||||
:text?,
|
||||
:colorize,
|
||||
to: :tree
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue