ish_models 0.0.33.280 → 0.0.33.282

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86d812dc316600921e0a70a2dfd1290ba7953e6eef290572d5efe7da8fa1dffe
4
- data.tar.gz: 11eaa2bc27bde9c54f4745b8ee062f632c3cce02ba57642b9935420a52b589f7
3
+ metadata.gz: e5f09926e50bdfd5eb47e0d54068d1e489da436ac66a04cbcbbdf512c54bd08d
4
+ data.tar.gz: '060097f0e62e56a7b6a531d59688818156395c197fddd4e6f99ec9e2a61d2372'
5
5
  SHA512:
6
- metadata.gz: a55ebe18caf9a86f644d448acc26c7d3cc933eff27bae16d81502dd931bf9d3b8aa02aea784a9a8961c9b56cbe404cc6faa29d95bc0eee43e53c70f7a50d01db
7
- data.tar.gz: 7913f4c587eb36989e4f497149ff139b9549f863714cd51adb7b07f5eb8edf1cfb52ef90136b8b0d7e046577ac181a29710947821ccafff800de1656345f0e5d
6
+ metadata.gz: 218fbb19117f7f2fd8cfb16b3bd42a926842c01935d533d38a0032f04161128a670cb618e38b3335e6f0e69b927f6b318923734f9f09195f353b1bfb182269c6
7
+ data.tar.gz: 8bbc63978210f3b2e2d33887aa89ae65ad89f70c15be228eafa22604dec316727cda6bbfcc1c0af9f58fb34be468ebbbcd8bab23674476e11f0a95d97c565a91
@@ -53,12 +53,13 @@ class ::Ish::EmailContext
53
53
 
54
54
  field :rendered_str
55
55
 
56
- field :sent_at, type: DateTime
57
- field :send_at, type: DateTime
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
 
@@ -50,6 +50,9 @@ class ::Ish::EmailTemplate
50
50
  'Victor Piousbox <no-reply@piousbox.com>',
51
51
  'Victor Pudeyev <victor@pudeyev.com>',
52
52
 
53
+ 'Sender Sbs <hello@sender.sbs>',
54
+ 'Sender Sbs <no-reply@sender.sbs>',
55
+
53
56
  'WasyaCo Consulting <admin@wasya.co>',
54
57
  'Alex <alex@wasya.co>',
55
58
  'Bailey <bailey@wasya.co>',
@@ -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
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.280
4
+ version: 0.0.33.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox