ish_models 0.0.33.228 → 0.0.33.229
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iro/option_watch.rb +3 -1
- data/lib/ish/email_context.rb +7 -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: c5a2776eca852c5a7e11aa0a03e7d9032e54ff2b3d0d7f8a6b4364df63029d8f
|
4
|
+
data.tar.gz: 9ad2d817b825868f4e299c99eb8c915a0436df006c43499d5ea834b0072487a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8441aa5354f28cbeaf28273b1a896066d7416e46258bbf5245d041f4a53ae6fe6f2613456a80c4e4568f49c9a6df3feeb7c29090bca50c5e12138ee41b389fe
|
7
|
+
data.tar.gz: be17d74a00957011492cdf197f17c2666bb187bcdbf9bd55c2d0d18db83846e743c5071c2d1afadd176a4e85472caad6917daa553b38ee083aadce65bf38dfb5
|
data/lib/iro/option_watch.rb
CHANGED
data/lib/ish/email_context.rb
CHANGED
@@ -49,14 +49,18 @@ class ::Ish::EmailContext
|
|
49
49
|
field :send_at, type: DateTime
|
50
50
|
|
51
51
|
|
52
|
-
def
|
53
|
-
|
52
|
+
def notsent
|
53
|
+
Ish::EmailContext.where( sent_at: nil )
|
54
|
+
end
|
55
|
+
def self.notsent; new.notsent; end
|
56
|
+
|
54
57
|
|
55
|
-
def self.scheduled; new.scheduled; end
|
56
58
|
def scheduled
|
57
59
|
# or({ :send_at.lte => Time.now }, { :send_at => nil }) ## This won't work b/c I need draft state!
|
58
60
|
Ish::EmailContext.where({ :send_at.lte => Time.now })
|
59
61
|
end
|
62
|
+
def self.scheduled; new.scheduled; end
|
63
|
+
|
60
64
|
|
61
65
|
def self.from_email_list
|
62
66
|
Ish::EmailCampaign.from_email_list
|