mirror of https://github.com/rails/rails
Merge pull request #51076 from yahonda/enum_action_mailbox
Address `Defining enums with keyword arguments` warning in Action Mai…
This commit is contained in:
commit
9b343c2879
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue