1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

TOC ordering

This commit is contained in:
David Heinemeier Hansson 2018-09-17 17:16:06 -07:00
parent 802bb8a452
commit a4c0c022d3

View file

@ -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