Refactor: replace comment with utility method
This commit is contained in:
parent
a2eeb4ae20
commit
c62e16b6cc
@ -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
|
||||||
@ -263,4 +262,7 @@ private
|
|||||||
@wiki ||= @project.wiki
|
@wiki ||= @project.wiki
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def hide_project_in_layout
|
||||||
|
@project = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user