app/models/action_mailbox/inbound_email.rb in actionmailbox-6.1.7.10 vs app/models/action_mailbox/inbound_email.rb in actionmailbox-7.0.0.alpha1

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require "action_mailbox/mail_with_error_handling" +require "mail" module ActionMailbox # The +InboundEmail+ is an Active Record that keeps a reference to the raw email stored in Active Storage # and tracks the status of processing. By default, incoming emails will go through the following lifecycle: # @@ -27,10 +27,10 @@ class InboundEmail < Record self.table_name = "action_mailbox_inbound_emails" include Incineratable, MessageId, Routable - has_one_attached :raw_email + has_one_attached :raw_email, service: ActionMailbox.storage_service enum status: %i[ pending processing delivered failed bounced ] def mail @mail ||= Mail.from_source(source) end