ish_models 0.0.33.200 → 0.0.33.201
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/office/email_conversation.rb +12 -0
- 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: 5f7b84c12b393ec05bb90bf8b5f0cbebf9f56b4a03cc7109024721da40267834
|
4
|
+
data.tar.gz: 9e9f21da6318f174be8e1ad53d6d04ae39554bc7b0fcb4f158930deda6387e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87be8ad0b221c7ead2a100b14e752bc67c32a6fe7b941d1153f92aa857050e3ebd3e775d74a8708ebec523585f791797d19f9a5fe0f479cad2df810fd025810a
|
7
|
+
data.tar.gz: 063d5e1a5d5fe71c7c3545768869d01c9c1461aa4bc14c2b958526c5be8232ae013a37ae8952b716d5f3c5ac6c7a36de8fc938df7e51d17f23ca16ac61b7923f
|
@@ -54,6 +54,18 @@ class Office::EmailConversation
|
|
54
54
|
::Office::EmailConversation.where( :wp_term_ids => WpTag.email_inbox_tag.id ).order_by( latest_at: :desc )
|
55
55
|
end
|
56
56
|
|
57
|
+
def self.in_emailtag which
|
58
|
+
case which.class.name
|
59
|
+
when 'String'
|
60
|
+
tag_id = WpTag.emailtag(which).id
|
61
|
+
when 'WpTag'
|
62
|
+
tag_id = which.id
|
63
|
+
else
|
64
|
+
throw "unsupported in #in_emailtag: #{which}"
|
65
|
+
end
|
66
|
+
return ::Office::EmailConversation.where( :wp_term_ids => tag_id ).order_by( latest_at: :desc )
|
67
|
+
end
|
68
|
+
|
57
69
|
end
|
58
70
|
# EmailConversation = Office::EmailConversation
|
59
71
|
Conv = Office::EmailConversation
|