diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-04 19:56:12 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-04 19:56:12 +0400 |
commit | 07e9cb6b77b35ed92d0d9a8e5bcdf92884024dbf (patch) | |
tree | 3e051045f1abaa9d336354c3fa90385616860281 /app/models/tree.rb | |
parent | ac71c386f98fa9b88381abbf9d20e79f57bd7957 (diff) |
Factor markup? || gitlab_markdown? into new method
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r-- | app/models/tree.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb index 07c9a825e24..4f5d81f0a5e 100644 --- a/app/models/tree.rb +++ b/app/models/tree.rb @@ -15,7 +15,7 @@ class Tree # by markup renderer. if available_readmes.length > 1 supported_readmes = available_readmes.select do |readme| - gitlab_markdown?(readme.name) || markup?(readme.name) + previewable?(readme.name) end # Take the first supported readme, or the first available readme, if we |