Class: Ish::EmailTemplate

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/ish/email_template.rb

Constant Summary collapse

LAYOUTS =
%w| plain
m20221201react m20221222merryxmas
m202309_feedback
m202309_ror4
marketing_node_1
marketing_react_1 marketing_react_2 marketing_react_3
marketing_ror_1 marketing_ror_2
marketing_wordpres_1 marketing_wordpress_2
piousbox_roundborders
plain
tracking_footer
wasyaco_roundborders |
FROM_EMAILS =
[
  'Annesque Studio <[email protected]>',
  'Annesque Studio <[email protected]>',

  'BJJCollective <[email protected]>',
  'BJJCollective <[email protected]>',

  'DemmiTV <[email protected]>',
  'DemmiTV <[email protected]>',

  'Infinite Shelter <[email protected]>',
  'Infinite Shelter <[email protected]>',

  'Oquaney Splicing <[email protected]>',
  'Oquaney Splicing <[email protected]>',

  'Victor Piousbox <[email protected]>',
  'Victor Piousbox <[email protected]>',
  'Victor Piousbox <[email protected]>',
  'Victor Pudeyev <[email protected]>',

  'WasyaCo Consulting <[email protected]>',
  'Alex <[email protected]>',
  'Bailey <[email protected]>',
  'Cameron <[email protected]>',
  'WasyaCo Consulting <[email protected]>',
  'Jess <[email protected]>',
  'WasyaCo Consulting <[email protected]>',
  'Victor Piousbox <[email protected]>',

  'WasyaCo Consulting <[email protected]>',
  'Alex <[email protected]>',
  'Bailey <[email protected]>',
  'Cameron <[email protected]>',
  'WasyaCo Consulting <[email protected]>',
  'WasyaCo Consulting <[email protected]>',
  'Victor <[email protected]>',

  'Wasya Co Mailer <[email protected]>',
  'Wasya Co Mailer <[email protected]>',
]
SLUG_BLANK =
'blank'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.blankObject



93
# File 'lib/ish/email_template.rb', line 93

def self.blank; self.blank_template; end

.blank_templateObject



90
91
92
# File 'lib/ish/email_template.rb', line 90

def self.blank_template
  out = Tmpl.find_or_create_by({ slug: SLUG_BLANK })
end

.from_email_listObject



74
75
76
# File 'lib/ish/email_template.rb', line 74

def self.from_email_list
  [ [nil, nil] ] + FROM_EMAILS.map { |i| [i, i] }
end

Instance Method Details

#config_exeObject

used a lot.



29
# File 'lib/ish/email_template.rb', line 29

field :config_exe,                      default: ""

#get_bindingObject

2023-03-04 vp This works!



79
80
81
82
# File 'lib/ish/email_template.rb', line 79

def get_binding
  @lead = Lead.where( email: '[email protected]' ).first
  binding()
end