Fixed rubocops.

This commit is contained in:
Martin Edenhofer 2015-08-30 14:04:48 +02:00
parent 27081708b1
commit 98cba4239c
3 changed files with 4 additions and 6 deletions

View file

@ -39,7 +39,6 @@ returns
data[ self.class.to_app_model ][ id ] = attributes
end
return data if !self['created_by_id'] && !self['updated_by_id']
%w(created_by_id updated_by_id).each {|local_user_id|
next if !self[ local_user_id ]

View file

@ -18,13 +18,13 @@ returns
def self.available_driver
if Setting.get('system_online_service')
return {
:inbound => ['imap', 'pop3'],
:outbound => ['smtp'],
inbound: %w(imap pop3),
outbound: %w(smtp),
}
end
{
:inbound => ['imap', 'pop3'],
:outbound => ['smtp', 'sendmail'],
inbound: %w(imap pop3),
outbound: %w(smtp sendmail),
}
end

View file

@ -74,7 +74,6 @@ or
result: 'failed',
message: "Unknown adapter '#{adapter}'",
}
return
end
# looking for verify email