Fix indentation and BuildsEmailService
This commit is contained in:
parent
71e6a93db9
commit
8b4cdc50fc
2 changed files with 5 additions and 6 deletions
|
@ -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]}"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue