ish_models 0.0.33.281 → 0.0.33.282
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/email_context.rb +4 -3
- data/lib/ish/email_unsubscribe.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5f09926e50bdfd5eb47e0d54068d1e489da436ac66a04cbcbbdf512c54bd08d
|
4
|
+
data.tar.gz: '060097f0e62e56a7b6a531d59688818156395c197fddd4e6f99ec9e2a61d2372'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 218fbb19117f7f2fd8cfb16b3bd42a926842c01935d533d38a0032f04161128a670cb618e38b3335e6f0e69b927f6b318923734f9f09195f353b1bfb182269c6
|
7
|
+
data.tar.gz: 8bbc63978210f3b2e2d33887aa89ae65ad89f70c15be228eafa22604dec316727cda6bbfcc1c0af9f58fb34be468ebbbcd8bab23674476e11f0a95d97c565a91
|
data/lib/ish/email_context.rb
CHANGED
@@ -53,12 +53,13 @@ class ::Ish::EmailContext
|
|
53
53
|
|
54
54
|
field :rendered_str
|
55
55
|
|
56
|
-
field :sent_at,
|
57
|
-
field :send_at,
|
56
|
+
field :sent_at, type: DateTime
|
57
|
+
field :send_at, type: DateTime
|
58
|
+
field :unsubscribed_at, type: DateTime
|
58
59
|
|
59
60
|
|
60
61
|
def notsent
|
61
|
-
Ish::EmailContext.where( sent_at: nil )
|
62
|
+
Ish::EmailContext.where( sent_at: nil, unsubscribed_at: nil )
|
62
63
|
end
|
63
64
|
def self.notsent; new.notsent; end
|
64
65
|
|
@@ -7,12 +7,12 @@ class Ish::EmailUnsubscribe
|
|
7
7
|
# validates_presence_of :email
|
8
8
|
# validates_uniqueness_of :email
|
9
9
|
|
10
|
-
field :lead_id
|
10
|
+
field :lead_id, type: :integer
|
11
11
|
field :reason
|
12
12
|
field :unsubscribed_at
|
13
13
|
|
14
|
-
belongs_to :campaign, class_name: '::Ish::EmailCampaign', inverse_of: :unsubscribes
|
15
|
-
belongs_to :template, class_name: '::Ish::EmailTemplate', inverse_of: :unsubscribes
|
14
|
+
belongs_to :campaign, class_name: '::Ish::EmailCampaign', inverse_of: :unsubscribes, optional: true
|
15
|
+
belongs_to :template, class_name: '::Ish::EmailTemplate', inverse_of: :unsubscribes, optional: true
|
16
16
|
|
17
17
|
|
18
18
|
end
|