Fix hardcoded condition and unassigned vars

This commit is contained in:
Dmitriy Zaporozhets
2013-07-29 16:51:04 +03:00
parent efa2676021
commit dd8f090bc8
2 changed files with 2 additions and 2 deletions
@@ -19,6 +19,6 @@ class Public::ProjectsController < ApplicationController
@recent_tags = @repository.tags.first(10)
@commit = @repository.commit(params[:ref])
@tree = Tree.new(@repository, @commit.id, @ref, @path)
@tree = Tree.new(@repository, @commit.id)
end
end
+1 -1
View File
@@ -1,4 +1,4 @@
- if false#tree.readme
- if tree.readme
= render "projects/tree/readme", readme: tree.readme
- else
.alert