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 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 =
[ 'Infinite Shelter <[email protected]>', 'Infinite Shelter <[email protected]>', 'Victor Piousbox <[email protected]>', 'Victor Piousbox <[email protected]>', 'Victor Piousbox <[email protected]>', 'Victor Piousbox <[email protected]>', 'WasyaCo Consulting <[email protected]>', 'WasyaCo Consulting <[email protected]>', 'Victor Piousbox <[email protected]>', ]
- SLUG_BLANK =
'blank'
Class Method Summary collapse
Instance Method Summary collapse
-
#get_binding ⇒ Object
2023-03-04 vp This works!.
Class Method Details
.blank ⇒ Object
56 |
# File 'lib/ish/email_template.rb', line 56 def self.blank; self.blank_template; end |
.blank_template ⇒ Object
53 54 55 |
# File 'lib/ish/email_template.rb', line 53 def self.blank_template out = Tmpl.find_or_create_by({ slug: SLUG_BLANK }) end |
.from_email_list ⇒ Object
38 39 40 |
# File 'lib/ish/email_template.rb', line 38 def self.from_email_list [ [nil, nil] ] + FROM_EMAILS.map { |i| [i, i] } end |
Instance Method Details
#get_binding ⇒ Object
2023-03-04 vp This works!
43 44 45 46 |
# File 'lib/ish/email_template.rb', line 43 def get_binding @lead = Lead.where( email: '[email protected]' ).first binding() end |