Return result. Needed for tests.
This commit is contained in:
parent
6e19457811
commit
fc361b827f
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@ module Channel::EmailSend
|
|||
channel_object = Object.const_get("Channel::#{channel[:adapter]}")
|
||||
channel_instance = channel_object.new
|
||||
|
||||
channel_instance.send(article, channel, notification)
|
||||
result = channel_instance.send(article, channel, notification)
|
||||
|
||||
channel_instance.disconnect
|
||||
rescue => e
|
||||
|
@ -23,5 +23,6 @@ module Channel::EmailSend
|
|||
Rails.logger.error e.inspect
|
||||
Rails.logger.error e.backtrace
|
||||
end
|
||||
result
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue