Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
c62e16b6
Commit
c62e16b6
authored
13 years ago
by
Eric Davis
Browse files
Options
Downloads
Patches
Plain Diff
Refactor: replace comment with utility method
parent
a2eeb4ae
Branches
Branches containing commit
Tags
v2.0.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/projects_controller.rb
+5
-3
5 additions, 3 deletions
app/controllers/projects_controller.rb
with
5 additions
and
3 deletions
app/controllers/projects_controller.rb
+
5
−
3
View file @
c62e16b6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment