Class: Wco::OfficeActionTemplate

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/wco/office_action_template.rb

Overview

A Publisher is an OAT

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.listObject



40
41
42
# File 'app/models/wco/office_action_template.rb', line 40

def self.list
  [[nil,nil]] + all.map { |ttt| [ ttt.slug, ttt.id ] }
end

Instance Method Details

#actionsObject



26
# File 'app/models/wco/office_action_template.rb', line 26

def actions; office_actions; end

#ajectsObject

email action object



35
# File 'app/models/wco/office_action_template.rb', line 35

has_many :ajects,         class_name: '::WcoEmail::EmailFilterAction', inverse_of: :aject

#do_runObject



21
22
23
# File 'app/models/wco/office_action_template.rb', line 21

def do_run
  eval( action_exe )
end

#to_sObject



37
38
39
# File 'app/models/wco/office_action_template.rb', line 37

def to_s
  "#{slug}"
end