diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 16:56:55 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 16:56:55 -0700 |
commit | 82ff0c235bdddccef76c2aa28a9a4d005dcd918b (patch) | |
tree | 8e6e285b4f039056dba022c763710a811424c52a /app/models/action_mailbox | |
parent | 627bbd34e142fa7caff49fd660a9a586f3ed6826 (diff) | |
download | rails-82ff0c235bdddccef76c2aa28a9a4d005dcd918b.tar.gz rails-82ff0c235bdddccef76c2aa28a9a4d005dcd918b.tar.bz2 rails-82ff0c235bdddccef76c2aa28a9a4d005dcd918b.zip |
Action Mailbox -> Action Mailroom
Diffstat (limited to 'app/models/action_mailbox')
-rw-r--r-- | app/models/action_mailbox/inbound_email.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/models/action_mailbox/inbound_email.rb b/app/models/action_mailbox/inbound_email.rb deleted file mode 100644 index 3e528b6642..0000000000 --- a/app/models/action_mailbox/inbound_email.rb +++ /dev/null @@ -1,17 +0,0 @@ -class ActionMailbox::InboundEmail < ActiveRecord::Base - self.table_name = "action_mailbox_inbound_email" - - after_create_commit :deliver_to_mailroom_later - has_one_attached :raw_message - - enum status: %i[ pending processing delivered failed bounced ] - - def mail - @mail ||= Mail.new(Mail::Utilities.binary_unsafe_to_crlf(raw_message.download)) - end - - private - def deliver_to_mailroom_later - ActionMailbox::DeliverInboundEmailToMailroomJob.perform_later self - end -end |