ish_models 0.0.33.186 → 0.0.33.188

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 +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d027fcc8d0c98d5575e517250768051102853dc5615027fe2c9179d040c77d6f
4
- data.tar.gz: b4de385ed7e98ba1903726b618d5de6ce5c4c0f032f8d0364ae3b306790f36f9
3
+ metadata.gz: 5be06df7dd4e5ef757b2b41322b1dcb072a7e2e772aa62384b368d27d3e0e483
4
+ data.tar.gz: 74b8d54e887100fd29150d9aa841d82bc851e2b9520704e9cacf5430fd381cd8
5
5
  SHA512:
6
- metadata.gz: 202b110ebedc34cc0ae916459fe309f6641674d92c3230585f0d1d68fdeb2aa490820c8be1537f872811c87bd74ea47d1a3a089cede0bc2b1d634a397a22f743
7
- data.tar.gz: afc8efc356d678c9f5bce359bca29327df0070a4969a920168cdc1f348c39c5e8fbec35f99758005b88e4bc8835d53b1a881cc7d7f9c00c556d9d62bfc180b0c
6
+ metadata.gz: 3cec2a4ac7f740f1ab7919962f2bd82ed6c185e676ec68befb66b811befd6e3b1f058772c714e993ad9deb85edc7e20ccfcab4769de511ac477fda7c657e88f1
7
+ data.tar.gz: 792de38c42ca34ea13064540a39044fa05d994119840d1352ed2d50a7728d72c0c9a2101c73d1446bc5ccc31022b830b39887b7c2c76e01f393708a8097faa6b
@@ -14,7 +14,8 @@ class Ish::EmailContext
14
14
 
15
15
  PAGE_PARAM_NAME = 'email_contexts_page'
16
16
 
17
- FROM_EMAILS = %w| piousbox@gmail.com victor@piousbox.com victor@wasya.co no-reply@piousbox.com |
17
+ FROM_EMAILS = %w| piousbox@gmail.com victor@piousbox.com no-reply@piousbox.com
18
+ admin@wasya.co hello@wasya.co no-reply@wasya.co victor@wasya.co |
18
19
  field :from_email
19
20
  validates_presence_of :from_email
20
21
  def self.from_email_list
@@ -46,6 +47,10 @@ class Ish::EmailContext
46
47
  Ish::EmailContext.where( type: TYPE_CAMPAIGN )
47
48
  end
48
49
 
50
+ def self.unsent_campaigns
51
+ Ish::EmailContext.where( type: TYPE_CAMPAIGN, sent_at: nil )
52
+ end
53
+
49
54
  def campaign_leads
50
55
  if self.type == TYPE_CAMPAIGN
51
56
  return ::EmailCampaignLead.where( email_campaign_id: self.id.to_s ).includes( :lead )
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.186
4
+ version: 0.0.33.188
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox