Sha256: dd1dc9ef1d7c144b11d7c6b18cd3ca6a8be15c5ef98607e3f0fa5bceb4be39a0

Contents?: true

Size: 878 Bytes

Versions: 19

Compression:

Stored size: 878 Bytes

Contents

##
## 2023-03-04 _vp_ When I receive one.
## 2023-03-04 _vp_ 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

19 entries across 19 versions & 1 rubygems

Version Path
ish_models-0.0.33.291 lib/office/email_action.rb
ish_models-0.0.33.287 lib/office/email_action.rb
ish_models-0.0.33.286 lib/office/email_action.rb
ish_models-0.0.33.285 lib/office/email_action.rb
ish_models-0.0.33.284 lib/office/email_action.rb
ish_models-0.0.33.283 lib/office/email_action.rb
ish_models-0.0.33.282 lib/office/email_action.rb
ish_models-0.0.33.281 lib/office/email_action.rb
ish_models-0.0.33.280 lib/office/email_action.rb
ish_models-0.0.33.279 lib/office/email_action.rb
ish_models-0.0.33.278 lib/office/email_action.rb
ish_models-0.0.33.277 lib/office/email_action.rb
ish_models-0.0.33.276 lib/office/email_action.rb
ish_models-0.0.33.275 lib/office/email_action.rb
ish_models-0.0.33.274 lib/office/email_action.rb
ish_models-0.0.33.273 lib/office/email_action.rb
ish_models-0.0.33.272 lib/office/email_action.rb
ish_models-0.0.33.271 lib/office/email_action.rb
ish_models-0.0.33.270 lib/office/email_action.rb