Skip to content
Snippets Groups Projects
Commit c62e16b6 authored by Eric Davis's avatar Eric Davis
Browse files

Refactor: replace comment with utility method

parent a2eeb4ae
No related merge requests found
...@@ -219,8 +219,7 @@ class ProjectsController < ApplicationController ...@@ -219,8 +219,7 @@ class ProjectsController < ApplicationController
end end
end end
end end
# hide project in layout hide_project_in_layout
@project = nil
end end
private private
...@@ -262,5 +261,8 @@ private ...@@ -262,5 +261,8 @@ private
@repository ||= @project.repository @repository ||= @project.repository
@wiki ||= @project.wiki @wiki ||= @project.wiki
end end
def hide_project_in_layout
@project = nil
end
end end
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