8 lines
172 B
Ruby
8 lines
172 B
Ruby
|
class EmailDeliveryObserver
|
||
|
def self.delivered_email(message)
|
||
|
return if message.to.nil?
|
||
|
|
||
|
EmailEvent.create_from_message!(message, status: "dispatched")
|
||
|
end
|
||
|
end
|