Class: Ish::EmailTemplate
- Inherits:
-
Object
- Object
- Ish::EmailTemplate
- 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]>', 'Sender Sbs <[email protected]>', 'Sender Sbs <[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
-
#config_exe ⇒ Object
unused! vp 2023-09-24.
-
#get_binding ⇒ Object
2023-03-04 vp This works!.
- #to_s ⇒ Object
Class Method Details
.blank ⇒ Object
96 |
# File 'lib/ish/email_template.rb', line 96 def self.blank; self.blank_template; end |
.blank_template ⇒ Object
93 94 95 |
# File 'lib/ish/email_template.rb', line 93 def self.blank_template out = Tmpl.find_or_create_by({ slug: SLUG_BLANK }) end |
.from_email_list ⇒ Object
77 78 79 |
# File 'lib/ish/email_template.rb', line 77 def self.from_email_list [ [nil, nil] ] + FROM_EMAILS.map { |i| [i, i] } end |
Instance Method Details
#config_exe ⇒ Object
unused! vp 2023-09-24
29 |
# File 'lib/ish/email_template.rb', line 29 field :config_exe, default: "" |
#get_binding ⇒ Object
2023-03-04 vp This works!
82 83 84 85 |
# File 'lib/ish/email_template.rb', line 82 def get_binding @lead = Lead.where( email: '[email protected]' ).first binding() end |
#to_s ⇒ Object
98 99 100 |
# File 'lib/ish/email_template.rb', line 98 def to_s "Tmpl:#{slug}" end |