Sha256: 391ae717b9d4487c0b1fc234a5a29d2c62bc9704ca9333c653e67387c2c01f11

Contents?: true

Size: 1.18 KB

Versions: 20

Compression:

Stored size: 1.18 KB

Contents

##
## act = Act.new ; tie = Actie.new; act.ties.push( tie )
##
class Office::EmailActionTie
  include Mongoid::Document
  include Mongoid::Timestamps

  attr_accessor :to_delete

  belongs_to :email_action,      class_name: '::Office::EmailAction', inverse_of: :ties
  belongs_to :next_email_action, class_name: '::Office::EmailAction', inverse_of: :prev_ties


  field :next_at_exe, type: :string
  validates :next_at_exe, presence: true

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

  # 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

  # 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
  # accepts_nested_attributes_for :next_email_actions

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

end
Actie = Office::EmailActionTie

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ish_models-0.0.33.235 lib/office/email_action_tie.rb
ish_models-0.0.33.234 lib/office/email_action_tie.rb
ish_models-0.0.33.233 lib/office/email_action_tie.rb
ish_models-0.0.33.232 lib/office/email_action_tie.rb
ish_models-0.0.33.231 lib/office/email_action_tie.rb
ish_models-0.0.33.230 lib/office/email_action_tie.rb
ish_models-0.0.33.229 lib/office/email_action_tie.rb
ish_models-0.0.33.228 lib/office/email_action_tie.rb
ish_models-0.0.33.227 lib/office/email_action_tie.rb
ish_models-0.0.33.226 lib/office/email_action_tie.rb
ish_models-0.0.33.225 lib/office/email_action_tie.rb
ish_models-0.0.33.224 lib/office/email_action_tie.rb
ish_models-0.0.33.222 lib/office/email_action_tie.rb
ish_models-0.0.33.221 lib/office/email_action_tie.rb
ish_models-0.0.33.219 lib/office/email_action_tie.rb
ish_models-0.0.33.217 lib/office/email_action_tie.rb
ish_models-0.0.33.215 lib/office/email_action_tie.rb
ish_models-0.0.33.214 lib/office/email_action_tie.rb
ish_models-0.0.33.213 lib/office/email_action_tie.rb
ish_models-0.0.33.212 lib/office/email_action_tie.rb