Sha256: 7fcb16ed188d945fd38366fe540d137bbe86d73c41873108cce8e2d847a94a8c

Contents?: true

Size: 856 Bytes

Versions: 8

Compression:

Stored size: 856 Bytes

Contents

##
## 2023-03-04 _vp_ When I receive one.
## 2023-03-04 _vp_ Also when I send one, forever.
##
class Office::EmailAction
  include Mongoid::Document
  include Mongoid::Timestamps

  field :slug, type: :string
  validates :slug, uniqueness: true, allow_nil: true

  field :descr, type: :string

  belongs_to :email_template, class_name: '::Ish::EmailTemplate'
  def tmpl; email_template; end

  # field :next_in_days, type: :string
  # field :next_at_time, type: :string
  field :next_at_exe, type: :string

  belongs_to :prev_email_action, class_name: '::Office::EmailAction', optional: true, inverse_of: :next_email_actions
  has_many :next_email_actions, class_name: '::Office::EmailAction', inverse_of: :prev_email_action

  has_many :scheduled_email_actions, class_name: '::Office::ScheduledEmailAction'
  def schs; scheduled_email_actions; end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ish_models-0.0.33.211 lib/office/email_action.rb
ish_models-0.0.33.210 lib/office/email_action.rb
ish_models-0.0.33.209 lib/office/email_action.rb
ish_models-0.0.33.208 lib/office/email_action.rb
ish_models-0.0.33.207 lib/office/email_action.rb
ish_models-0.0.33.206 lib/office/email_action.rb
ish_models-0.0.33.205 lib/office/email_action.rb
ish_models-0.0.33.204 lib/office/email_action.rb