Ajout de GlobalID pour Email
This commit is contained in:
parent
f991f5d35b
commit
2c5ce478b2
|
@ -2,6 +2,7 @@ class Email
|
|||
include ActiveModel::Model
|
||||
include ActiveModel::Attributes
|
||||
include ActiveModel::Conversion
|
||||
include GlobalID::Identification
|
||||
|
||||
attribute :id
|
||||
attribute :message_id
|
||||
|
@ -42,4 +43,8 @@ class Email
|
|||
def mailing_list?
|
||||
mailing_list
|
||||
end
|
||||
|
||||
def self.find(id)
|
||||
EmailRepository.new.find(id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue