Fix indentation and BuildsEmailService

This commit is contained in:
Kamil Trzcinski 2015-12-11 18:01:57 +01:00
parent 71e6a93db9
commit 8b4cdc50fc
2 changed files with 5 additions and 6 deletions

View file

@ -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]}"

View file

@ -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