Class: WcoEmail::EmailActionTemplate

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paranoia, Mongoid::Timestamps
Defined in:
app/models/wco_email/email_action_template.rb

Overview

2023-03-04 vp When I receive one. 2023-03-04 vp When I send one, forever.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.listObject



30
31
32
# File 'app/models/wco_email/email_action_template.rb', line 30

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

Instance Method Details

#to_sObject



26
27
28
# File 'app/models/wco_email/email_action_template.rb', line 26

def to_s
  slug
end