Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-27 10:20:36 +0400
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-27 13:05:53 +0400
commit841e4fbd08d2d642c127506001a76a973ea3d536 (patch)
tree56a894ecdf3978bc3032daa8fae294dad897018d /app/models/tree.rb
parent2a4359a572c123d117988487f9bb29f4ae176ceb (diff)
cosmetical cleanup of models
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index 88e8f2f4663..e4297a71a52 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -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