Class: Wco::OfficeActionTemplate
- Inherits:
-
Object
- Object
- Wco::OfficeActionTemplate
- 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
.list ⇒ Object
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
#actions ⇒ Object
27 |
# File 'app/models/wco/office_action_template.rb', line 27 def actions; office_actions; end |
#do_run ⇒ Object
22 23 24 |
# File 'app/models/wco/office_action_template.rb', line 22 def do_run eval( action_exe ) end |
#to_s ⇒ Object
35 36 37 |
# File 'app/models/wco/office_action_template.rb', line 35 def to_s "#{slug}" end |