Email : serialization en Hash via attributes
This commit is contained in:
parent
e10dc65a02
commit
c35e20d314
|
@ -24,4 +24,8 @@ class Email
|
|||
validates :delivered_to, presence: true
|
||||
validates :from, presence: true
|
||||
validates :headers, presence: true
|
||||
|
||||
def to_hash
|
||||
attributes
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue