ish_models 0.0.33.277 → 0.0.33.279

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: 36411d08f39d7a925ed4fd5de390befa5eee272007fec32f066abfb70b3cf2ad
4
- data.tar.gz: 1c8e73e3ebd9d90089e9f04fa6801f6829923d2fadef4bb718ead3914caba12d
3
+ metadata.gz: 74c481f30a9f9f5d5bb6d0f0796bdab206f756e1b7efa78911779ea0e6f15d0c
4
+ data.tar.gz: 1a1008a86708014b8c49dfd3781ec1a458bf8893c2b0a974a2dec1a5d4a0969f
5
5
  SHA512:
6
- metadata.gz: 5708dc9923e8a8e4dd2de2d944388f42a187324c299805e8f5f1508ea8739f0e1fea2f6d89fe03b694c2db2828837d2e47ac47c30c010238a02daeda2658c733
7
- data.tar.gz: e217472d41b1942cc9f67614853476f31509a4febb9bee257a18693465ec3bf1c2013f9393e641e576ac9fc75dc7eaac9fdd91344229006f2628c59b5ac229ff
6
+ metadata.gz: 8d18ab11acab8e02e5598c53574cd1f4e241ab9ecb0dedc15012d4313b0c49988bef8a690ed8794b33979d3f5927ca2252f5f63ca2e90452f990962b58611370
7
+ data.tar.gz: 4fc99d9c559cbf27d0b22c15ccdc3d0169e921e8199a398ca83ea7b573fdfe8f4dca871740b464d9b3c2435f3aa6ec76e5e50676e6955b721e6bdef76c19b177
@@ -13,24 +13,18 @@ class Office::EmailConversation
13
13
  field :latest_at
14
14
  index({ latest_at: -1 })
15
15
 
16
- has_many :email_conversation_leads, class_name: 'Office::EmailConversationLead'
16
+ field :from_emails, type: :array, default: []
17
+
18
+ has_many :lead_ties, class_name: 'Office::EmailConversationLead'
17
19
  # def lead_ids
18
20
  # email_conversation_leads.map( &:lead_id )
19
21
  # end
20
- field :lead_ids, type: :array, default: []
22
+ # field :lead_ids, type: :array, default: []
21
23
  def leads
22
- Lead.find( lead_ids.compact )
23
- end
24
-
25
- has_many :email_messages
26
- def email_messages
27
- Office::EmailMessage.where( email_conversation_id: self.id )
24
+ Lead.find( lead_ties.map( &:lead_id ) )
28
25
  end
29
26
 
30
- ##
31
- ## A `tags` concern
32
- ##
33
-
27
+ has_many :email_messages, class_name: 'Office::EmailMessage'
34
28
  has_many :email_conversation_tags, class_name: 'Office::EmailConversationTag'
35
29
 
36
30
  def wp_term_ids ## @TODO: remove _vp_ 2023-09-23
@@ -44,7 +44,7 @@ class Office::EmailMessage
44
44
  date
45
45
  end
46
46
 
47
- belongs_to :email_conversation
47
+ belongs_to :email_conversation, class_name: 'Office::EmailConversation'
48
48
  def conv
49
49
  email_conversation
50
50
  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.277
4
+ version: 0.0.33.279
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox