Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
1d3d7ff1
Commit
1d3d7ff1
authored
May 16, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: extract method to prepare to reuse
parent
db7bc2bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
projects_controller.rb
app/controllers/projects_controller.rb
+10
-6
No files found.
app/controllers/projects_controller.rb
View file @
1d3d7ff1
...
...
@@ -154,12 +154,7 @@ class ProjectsController < ApplicationController
end
def
settings
@issue_custom_fields
=
IssueCustomField
.
find
(
:all
,
:order
=>
"
#{
CustomField
.
table_name
}
.position"
)
@issue_category
||=
IssueCategory
.
new
@member
||=
@project
.
members
.
new
@trackers
=
Tracker
.
all
@repository
||=
@project
.
repository
@wiki
||=
@project
.
wiki
load_project_settings
end
def
edit
...
...
@@ -258,5 +253,14 @@ private
redirect_to_project_menu_item
(
@project
,
params
[
:jump
])
&&
return
end
end
def
load_project_settings
@issue_custom_fields
=
IssueCustomField
.
find
(
:all
,
:order
=>
"
#{
CustomField
.
table_name
}
.position"
)
@issue_category
||=
IssueCategory
.
new
@member
||=
@project
.
members
.
new
@trackers
=
Tracker
.
all
@repository
||=
@project
.
repository
@wiki
||=
@project
.
wiki
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment