mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
TOC ordering
This commit is contained in:
parent
802bb8a452
commit
a4c0c022d3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue