Sha256: 6cb3a2b7db1fbaf82a0d4f0c5010820e866574f36b50ae35873a4f83a0ac4aec

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 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
  
  field :text, type: String
  field :html, type: String
  
  validate :text, presence: true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mailcannon-0.1.1 lib/mailcannon/mail.rb
mailcannon-0.1.0.pre.1 lib/mailcannon/mail.rb
mailcannon-0.0.8.pre.1 lib/mailcannon/mail.rb
mailcannon-0.0.8 lib/mailcannon/mail.rb
mailcannon-0.0.6 lib/mailcannon/mail.rb
mailcannon-0.0.5 lib/mailcannon/mail.rb