ish_models 0.0.33.277 → 0.0.33.278

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: 3677bd0b5b910e6c55ce20855c34566fb4054967dfed7a476d94652bdd8d162f
4
+ data.tar.gz: 930a51ab0e79cb7295d57a604ad4c7263284c57f04814ad1a96ea17111ac32c3
5
5
  SHA512:
6
- metadata.gz: 5708dc9923e8a8e4dd2de2d944388f42a187324c299805e8f5f1508ea8739f0e1fea2f6d89fe03b694c2db2828837d2e47ac47c30c010238a02daeda2658c733
7
- data.tar.gz: e217472d41b1942cc9f67614853476f31509a4febb9bee257a18693465ec3bf1c2013f9393e641e576ac9fc75dc7eaac9fdd91344229006f2628c59b5ac229ff
6
+ metadata.gz: 68224156745d13623eeb287257ff37810a753073183beef78b9e559ad1cf8f674b4422df954bbacab8de655c1fd581bdb6ad4fc001b6749c4a99a24511b0293a
7
+ data.tar.gz: d172ee0cc83b99ba595c71d8dd9573420b9f1b833959e246b47e8af0d0669659e3b95d15e6f8145cae16c51755ccbd129fa6ba50f00d52715468a51de88da26c
@@ -13,23 +13,20 @@ 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 )
24
+ Lead.find( lead_ties.map( &:lead_id ) )
23
25
  end
24
26
 
25
- has_many :email_messages
26
- def email_messages
27
- Office::EmailMessage.where( email_conversation_id: self.id )
28
- end
27
+ has_many :email_messages, class_name: 'Office::EmailMessage'
28
+
29
29
 
30
- ##
31
- ## A `tags` concern
32
- ##
33
30
 
34
31
  has_many :email_conversation_tags, class_name: 'Office::EmailConversationTag'
35
32
 
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.278
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox