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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
8b4cdc50
Commit
8b4cdc50
authored
Dec 11, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation and BuildsEmailService
parent
71e6a93d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
app/models/project_services/builds_email_service.rb
app/models/project_services/builds_email_service.rb
+1
-2
app/models/service.rb
app/models/service.rb
+4
-4
No files found.
app/models/project_services/builds_email_service.rb
View file @
8b4cdc50
...
...
@@ -79,8 +79,7 @@ class BuildsEmailService < Service
end
def
all_recipients
(
data
)
all_recipients
=
[]
all_recipients
<<=
recipients
.
split
(
','
)
all_recipients
=
recipients
.
split
(
','
)
if
add_pusher?
&&
data
[
:user
][
:email
]
all_recipients
<<
"
#{
data
[
:user
][
:email
]
}
"
...
...
app/models/service.rb
View file @
8b4cdc50
...
...
@@ -143,10 +143,10 @@ class Service < ActiveRecord::Base
args
.
each
do
|
arg
|
class_eval
%{
def #{arg}?
ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES.include?(#{arg})
end
}
def #{arg}?
ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES.include?(#{arg})
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