diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-27 17:52:14 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-27 17:52:14 +0400 |
commit | cac868ee94cd28792845882f66d75aee6e9c5acd (patch) | |
tree | c131f105fc404a87f869058815ecf37c2ab014de /app/models/tree.rb | |
parent | b2cab1c52ad32166c49903d00f25c305aa225ddb (diff) |
Use new gitlab_git gem. It makes CONTRIBUTING.md work
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 f1077772ea9..ac2183be44b 100644 --- a/app/models/tree.rb +++ b/app/models/tree.rb @@ -11,7 +11,7 @@ class Tree @readme = Gitlab::Git::Blob.find(git_repo, sha, readme_path) end - if contribution_tree = @entries.find(&:contribution?) + if contribution_tree = @entries.find(&:contributing?) contribution_path = path == '/' ? contribution_tree.name : File.join(path, contribution_tree.name) @contribution_guide = Gitlab::Git::Blob.find(git_repo, sha, contribution_path) end |