Code cleanup.

This commit is contained in:
Martin Edenhofer 2016-04-26 14:42:55 +02:00
parent b7597123fd
commit 6c3dc608ab
3 changed files with 15 additions and 15 deletions

View file

@ -5,10 +5,10 @@
channel_id = nil
channel = Channel.find_by(area: 'Email::Notification', active: true)
if channel
channel_id = channel
channel_id = channel.id
end
email_address = EmailAddress.create_if_not_exists(
email_address = EmailAddress.create_or_update(
realname: 'Zammad',
email: 'zammad@localhost',
channel_id: channel_id,