Sha256: 62c273828d24803483f71b4fcd6c2583c38f734e5306f8e85afbb34513d73c75
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
module Devmail class DevMail include Mongoid::Document include Mongoid::Timestamps field :from, :type => Array field :to, :type => Array field :cc, :type => Array field :bcc, :type => Array field :header field :sender field :subject field :reply_to, :type => Array field :text_part field :html_part field :multipart, :type => Boolean field :content_transfer_encoding field :serialized_mail def mail Mail::Message.from_yaml(self.serialized_mail) end def mail=(m) self.serialized_mail = m.to_yaml end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devmail-0.0.1 | app/models/devmail/dev_mail.rb |