Sha256: d43421f39ea8b22cd2624bf075682eee6a94ac1d02e1c2b8905ef566160bcb45

Contents?: true

Size: 883 Bytes

Versions: 22

Compression:

Stored size: 883 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

  has_many :email_filters, class_name: 'Office::EmailFilter', inverse_of: :email_action

end
EAct = Office::EmailAction

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ish_models-0.0.33.269 lib/office/email_action.rb
ish_models-0.0.33.268 lib/office/email_action.rb
ish_models-0.0.33.267 lib/office/email_action.rb
ish_models-0.0.33.266 lib/office/email_action.rb
ish_models-0.0.33.265 lib/office/email_action.rb
ish_models-0.0.33.264 lib/office/email_action.rb
ish_models-0.0.33.263 lib/office/email_action.rb
ish_models-0.0.33.262 lib/office/email_action.rb
ish_models-0.0.33.261 lib/office/email_action.rb
ish_models-0.0.33.260 lib/office/email_action.rb
ish_models-0.0.33.259 lib/office/email_action.rb
ish_models-0.0.33.258 lib/office/email_action.rb
ish_models-0.0.33.257 lib/office/email_action.rb
ish_models-0.0.33.256 lib/office/email_action.rb
ish_models-0.0.33.255 lib/office/email_action.rb
ish_models-0.0.33.254 lib/office/email_action.rb
ish_models-0.0.33.253 lib/office/email_action.rb
ish_models-0.0.33.252 lib/office/email_action.rb
ish_models-0.0.33.251 lib/office/email_action.rb
ish_models-0.0.33.250 lib/office/email_action.rb