Commit c62e16b6 authored by Eric Davis's avatar Eric Davis

Refactor: replace comment with utility method

parent a2eeb4ae
......@@ -219,8 +219,7 @@ class ProjectsController < ApplicationController
end
end
end
# hide project in layout
@project = nil
hide_project_in_layout
end
private
......@@ -262,5 +261,8 @@ private
@repository ||= @project.repository
@wiki ||= @project.wiki
end
def hide_project_in_layout
@project = nil
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment