Sha256: 94929f828313f1cc3b80b7faad8c49665c213cdfb9567f78fc0eaa1ce0198331

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

# Holds the content of the email, this will be destroyed once the Envelope has been processed.
class MailCannon::Mail
  include Mongoid::Document
  include Mongoid::Timestamps
  
  embedded_in :envelope#, index: true
  
  field :text, type: String
  field :html, type: String
  
  validate :text, presence: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mailcannon-0.0.4 lib/mailcannon/mail.rb