Sha256: 7b37167c176315c59bc8613dfebc3316633b45d415e0037b30b1e8d42540e813

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 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})

  <%= lockbox_method %> :to
  blind_index :to
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ahoy_email-2.4.0 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.3.1 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.3.0 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.2.0 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt
ahoy_email-2.1.3 lib/generators/ahoy/messages/templates/mongoid_lockbox.rb.tt