Sha256: 7d3a3844ce5a10cc7f20da5436a10b3be28e8a57a99b8e1f75fa2d2a44c153ca

Contents?: true

Size: 794 Bytes

Versions: 12

Compression:

Stored size: 794 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 ## optional, can remove

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

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

  has_many :ties,      class_name: '::Office::EmailActionTie', inverse_of: :email_action
  has_many :prev_ties, class_name: '::Office::EmailActionTie', inverse_of: :next_email_action
  accepts_nested_attributes_for :ties

end
EAct = Office::EmailAction

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ish_models-0.0.33.247 lib/office/email_action.rb
ish_models-0.0.33.246 lib/office/email_action.rb
ish_models-0.0.33.245 lib/office/email_action.rb
ish_models-0.0.33.244 lib/office/email_action.rb
ish_models-0.0.33.243 lib/office/email_action.rb
ish_models-0.0.33.242 lib/office/email_action.rb
ish_models-0.0.33.241 lib/office/email_action.rb
ish_models-0.0.33.240 lib/office/email_action.rb
ish_models-0.0.33.239 lib/office/email_action.rb
ish_models-0.0.33.238 lib/office/email_action.rb
ish_models-0.0.33.237 lib/office/email_action.rb
ish_models-0.0.33.236 lib/office/email_action.rb