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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c39f66420468113cfb31217b7d1b333b4e6ce7cddb147b416df79d94b9609957
4
- data.tar.gz: a4172f8d87117e3a8163e24b44a180c5c8aae0bffadad80e65d12ec8175014a2
3
+ metadata.gz: 5f7b84c12b393ec05bb90bf8b5f0cbebf9f56b4a03cc7109024721da40267834
4
+ data.tar.gz: 9e9f21da6318f174be8e1ad53d6d04ae39554bc7b0fcb4f158930deda6387e77
5
5
  SHA512:
6
- metadata.gz: 5e65a7d641d83c37c28689f4a16652af4c4b3cfda69361d5392638ed986a6faa96e8b44599ec0864fafebcd65cf02ab44be2f215f957294b02c46e5608b3529c
7
- data.tar.gz: 75a064e75948b1befc3f83eefa7defb205a3bac581227a47022c22b04aace3665da751152d87699e52211ca1e2e7f9470e47f7d731296f8d1ed1067bda1fa4cd
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
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.200
4
+ version: 0.0.33.201
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox