Merge pull request #51076 from yahonda/enum_action_mailbox

Address `Defining enums with keyword arguments` warning in Action Mai…
This commit is contained in:
Yasuo Honda 2024-02-14 13:53:37 +09:00 committed by GitHub
commit 9b343c2879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module ActionMailbox
include Incineratable, MessageId, Routable
has_one_attached :raw_email, service: ActionMailbox.storage_service
enum status: %i[ pending processing delivered failed bounced ]
enum :status, %i[ pending processing delivered failed bounced ]
def mail
@mail ||= Mail.from_source(source)