Class: Wco::OfficeActionTemplate

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paranoia, 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



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

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

Instance Method Details

#actionsObject



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

def actions; office_actions; end

#do_runObject



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

def do_run
  eval( action_exe )
end

#to_sObject



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

def to_s
  "#{slug}"
end