Skip to content

Commit 9b343c2

Browse files
authored
Merge pull request rails#51076 from yahonda/enum_action_mailbox
Address `Defining enums with keyword arguments` warning in Action Mai…
2 parents aafbf0a + 676fe1b commit 9b343c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionmailbox/app/models/action_mailbox/inbound_email.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class InboundEmail < Record
2828
include Incineratable, MessageId, Routable
2929

3030
has_one_attached :raw_email, service: ActionMailbox.storage_service
31-
enum status: %i[ pending processing delivered failed bounced ]
31+
enum :status, %i[ pending processing delivered failed bounced ]
3232

3333
def mail
3434
@mail ||= Mail.from_source(source)

0 commit comments

Comments
 (0)