Commit 8b4cdc50 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix indentation and BuildsEmailService

parent 71e6a93d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment