Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
130c306a
Commit
130c306a
authored
Jan 09, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused admin email helper.
parent
84d74e83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
app/helpers/admin_email_helper.rb
app/helpers/admin_email_helper.rb
+0
-19
No files found.
app/helpers/admin_email_helper.rb
deleted
100644 → 0
View file @
84d74e83
module
AdminEmailHelper
def
admin_email_grouped_recipient_options
options_for_select
([[
'All GitLab users'
,
'all'
]])
+
grouped_options_for_select
(
'Groups'
=>
Group
.
pluck
(
:name
,
:id
).
map
{
|
name
,
id
|
[
name
,
"group-
#{
id
}
"
]
},
'Projects'
=>
grouped_project_list
)
end
protected
def
grouped_project_list
Group
.
includes
(
:projects
).
flat_map
do
|
group
|
group
.
human_name
group
.
projects
.
map
do
|
project
|
[
"
#{
group
.
human_name
}
/
#{
project
.
name
}
"
,
"project-
#{
project
.
id
}
"
]
end
end
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