summaryrefslogtreecommitdiff
path: root/app/models/tree.rb
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2015-05-13 01:40:11 +0200
committerJakub Jirutka <jakub@jirutka.cz>2015-05-18 22:51:56 +0200
commitdaa0925016a63dcde448643cbf1310aca359cf37 (patch)
tree6b8546fd4cdb2306dc40dec5e444b93d49b1d9de /app/models/tree.rb
parentb61a44fe1aa17a3e647e71115d1b4a6a39d8c2d2 (diff)
downloadgitlab-ce-daa0925016a63dcde448643cbf1310aca359cf37.tar.gz
Rename MarkdownHelper to MarkupHelper
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index f279e896cda..93b3246a668 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -1,11 +1,11 @@
class Tree
- include Gitlab::MarkdownHelper
+ include Gitlab::MarkupHelper
attr_accessor :repository, :sha, :path, :entries
def initialize(repository, sha, path = '/')
path = '/' if path.blank?
-
+
@repository = repository
@sha = sha
@path = path
@@ -20,7 +20,7 @@ class Tree
available_readmes = blobs.select(&:readme?)
if available_readmes.count == 0
- return @readme = nil
+ return @readme = nil
end
# Take the first previewable readme, or the first available readme, if we