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
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
...
@@ -79,8 +79,7 @@ class BuildsEmailService < Service
end
end
def
all_recipients
(
data
)
def
all_recipients
(
data
)
all_recipients
=
[]
all_recipients
=
recipients
.
split
(
','
)
all_recipients
<<=
recipients
.
split
(
','
)
if
add_pusher?
&&
data
[
:user
][
:email
]
if
add_pusher?
&&
data
[
:user
][
:email
]
all_recipients
<<
"
#{
data
[
:user
][
:email
]
}
"
all_recipients
<<
"
#{
data
[
:user
][
:email
]
}
"
...
...
app/models/service.rb
View file @
8b4cdc50
...
@@ -143,10 +143,10 @@ class Service < ActiveRecord::Base
...
@@ -143,10 +143,10 @@ class Service < ActiveRecord::Base
args
.
each
do
|
arg
|
args
.
each
do
|
arg
|
class_eval
%{
class_eval
%{
def #{arg}?
def #{arg}?
ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES.include?(#{arg})
ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES.include?(#{arg})
end
end
}
}
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