Sha256: b5480b262d4c18f5739c6b3244a0dfbedf0113961869845776aeff04030d10cd

Contents?: true

Size: 255 Bytes

Versions: 12

Compression:

Stored size: 255 Bytes

Contents

class Ahoy::Message
  include Mongoid::Document

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

  field :to, type: String
  field :mailer, type: String
  field :subject, type: String
  field :sent_at, type: Time

  index({to: 1})
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ahoy_email-2.4.0 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.3.1 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.3.0 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.2.0 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.1.3 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.1.2 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.1.1 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.1.0 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.0.3 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.0.2 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.0.1 lib/generators/ahoy/messages/templates/mongoid.rb.tt
ahoy_email-2.0.0 lib/generators/ahoy/messages/templates/mongoid.rb.tt