diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 17:16:06 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 17:16:06 -0700 |
commit | a4c0c022d3e07fea5b573bf1b90851e79ad87ac9 (patch) | |
tree | 5767a71e9aadf8aacb85998a140065a8422f3a07 /app | |
parent | 802bb8a452e1969e15683a1f7599e3ffc580215f (diff) | |
download | rails-a4c0c022d3e07fea5b573bf1b90851e79ad87ac9.tar.gz rails-a4c0c022d3e07fea5b573bf1b90851e79ad87ac9.tar.bz2 rails-a4c0c022d3e07fea5b573bf1b90851e79ad87ac9.zip |
TOC ordering
Diffstat (limited to 'app')
-rw-r--r-- | app/models/action_mailroom/inbound_email.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/action_mailroom/inbound_email.rb b/app/models/action_mailroom/inbound_email.rb index f280bc192c..755d7be138 100644 --- a/app/models/action_mailroom/inbound_email.rb +++ b/app/models/action_mailroom/inbound_email.rb @@ -1,11 +1,13 @@ class ActionMailroom::InboundEmail < ActiveRecord::Base self.table_name = "action_mailroom_inbound_emails" - after_create_commit :deliver_to_mailroom_later has_one_attached :raw_message enum status: %i[ pending processing delivered failed bounced ] + after_create_commit :deliver_to_mailroom_later + + def mail @mail ||= Mail.new(Mail::Utilities.binary_unsafe_to_crlf(raw_message.download)) end |