Refactor: replace comment with utility method

This commit is contained in:
Eric Davis 2011-05-16 10:39:11 -07:00
parent a2eeb4ae20
commit c62e16b6cc

View File

@ -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