ish_models 3.1.0.12 → 3.1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wco/tag.rb +1 -0
- data/lib/wco_email/conversation.rb +11 -12
- 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: c46fe1a3c912f44bfea7b3c8860504d9e43dc58ac5c61d2b78f54d9b3604d5df
|
4
|
+
data.tar.gz: 24db6889ed4f929a9efb76f8ecb583923468902b49b41a189c2552d0d68ecfa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ad49ab1c7a3890c57da215dbdc261d0d04d55b61d8c1f1e286bccbed161f445f69a73e9fee8ad2a4c6e24be2b1d18fc9ebffdd61df085f78e00779799893be
|
7
|
+
data.tar.gz: 89322ee3df01c880d551299c79f13015fb80e25fb31d9e3a73f09e8d7ed34ebc74e550d33acee70680484f38cf14d94e59dcc9b7e05802592436fcdb1e226f37
|
data/lib/wco/tag.rb
CHANGED
@@ -27,23 +27,22 @@ class WcoEmail::Conversation
|
|
27
27
|
# email_conversation_leads.map( &:lead_id )
|
28
28
|
# end
|
29
29
|
# field :lead_ids, type: :array, default: []
|
30
|
-
def leads
|
31
|
-
|
32
|
-
end
|
30
|
+
# def leads
|
31
|
+
# Lead.find( lead_ties.map( &:lead_id ) )
|
32
|
+
# end
|
33
33
|
|
34
34
|
# has_many :email_messages, class_name: 'Office::EmailMessage'
|
35
35
|
# has_many :email_conversation_tags, class_name: 'Office::EmailConversationTag'
|
36
36
|
|
37
|
-
|
37
|
+
has_and_belongs_to_many :tags, class_name: 'Wco::Tag'
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
end
|
39
|
+
# def self.in_tag tag
|
40
|
+
# case tag.class
|
41
|
+
# when String
|
42
|
+
# tag = Wco::Tag.find_by slug: tag
|
43
|
+
# end
|
44
|
+
# where( :tag_ids => tag.id )
|
45
|
+
# end
|
47
46
|
|
48
47
|
end
|
49
48
|
Conv = WcoEmail::Conversation
|