Sha256: 09f26ef3b9f644b6d9068bcec6bcb0ee852e82afcab8e33981a875fd0a74bfc9

Contents?: true

Size: 336 Bytes

Versions: 7

Compression:

Stored size: 336 Bytes

Contents

class Ahoy::Message
  include Mongoid::Document

  belongs_to :user, polymorphic: true, optional: true, index: true

  field :to_ciphertext, type: String
  field :to_bidx, type: String
  field :mailer, type: String
  field :subject, type: String
  field :sent_at, type: Time

  index({to_bidx: 1})

  encrypts :to
  blind_index :to
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ahoy_email-2.1.2 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.1.1 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.1.0 lib/generators/ahoy/messages/templates/mongoid_encrypted.rb.tt
ahoy_email-2.0.3 lib/generators/ahoy/messages/templates/mongoid_encrypted.rb.tt
ahoy_email-2.0.2 lib/generators/ahoy/messages/templates/mongoid_encrypted.rb.tt
ahoy_email-2.0.1 lib/generators/ahoy/messages/templates/mongoid_encrypted.rb.tt
ahoy_email-2.0.0 lib/generators/ahoy/messages/templates/mongoid_encrypted.rb.tt