mailcannon/mailcannon

View on GitHub
lib/mailcannon/mail.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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
  
  field :text, type: String
  field :html, type: String
  
  validate :text, presence: true
end