ish_models 0.0.33.254 → 0.0.33.256

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/email_context.rb +13 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce6db03a6723dff164bcee860e6fb6471a1685802392328922b644513d2cc7bf
4
- data.tar.gz: ed5abf8b067ae618b2b71a4b56bff0c682dd8769337bf7e1e67a90e123e2fa9a
3
+ metadata.gz: 2856a55a919a775f958c9f609db32bd0c4b0016e45bc61cd1f4b736301fea764
4
+ data.tar.gz: 4817e9e16269651c57c7f28d4346a6523e367fbc963ad3116265014c5634299e
5
5
  SHA512:
6
- metadata.gz: 43f277ed439690def320664e94b9a8c8f5951070f4b8ff6e6c2f8e5601b84c1bc1158f09d10e4d730e6f26a7649fa6a09b73c836c1ae0b1f09672f243e880dbb
7
- data.tar.gz: 6504f9b4ff6777ab419b74fa9c7973737fef1512c7e73ae5945a67d4554d602b098036dd24cc5a941e108c70c25efbbfc70ae9e89bd28ea1b20dc8af7a73d43c
6
+ metadata.gz: aee0ab253e9e7dd35024d4250dc53289f54ce540052be6de8b115cd94b65d3f4c6ecbc23388e0c042946e78e869c58850977d1e848db08d683022f7ecfe27f88
7
+ data.tar.gz: af83cee19b99bf8c93fc9583e44075207ddd9ba1b3dd655211257c89ead59c5a5aa9e1b1a3e441ccbeefd0b24b2058aeb873e761b033850cb097f125d97a169d
@@ -30,6 +30,13 @@ class ::Ish::EmailContext
30
30
  PAGE_PARAM_NAME = 'email_contexts_page'
31
31
 
32
32
  field :from_email
33
+ def from_email
34
+ if self[:from_email].presence
35
+ return self[:from_email]
36
+ else
37
+ return tmpl.from_email
38
+ end
39
+ end
33
40
  # validates_presence_of :from_email
34
41
 
35
42
  field :subject
@@ -81,6 +88,12 @@ class ::Ish::EmailContext
81
88
 
82
89
  def get_binding
83
90
  @lead = lead()
91
+ @utm_tracking_str = {
92
+ 'cid' => lead.id,
93
+ 'utm_campaign' => tmpl.slug,
94
+ 'utm_medium' => 'email',
95
+ 'utm_source' => tmpl.slug,
96
+ }.map { |k, v| "#{k}=#{v}" }.join("&")
84
97
  binding()
85
98
  end
86
99
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.254
4
+ version: 0.0.33.256
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox