ish_models 3.1.0.12 → 3.1.0.14

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: af33b8ca737ff6753bf22f45dc97b27cd7cff3c94829f50aac5b13244909a626
4
- data.tar.gz: f3e4f8bf750f1395c83b49fe8040a9f881f8ae7d40f6c164566e2df015501a0f
3
+ metadata.gz: 1aab599eebe7e7fcb66958056c67d337fc71feddc43f98f562fe28a796e29e69
4
+ data.tar.gz: 045e67c9ab3c47f4ec686655e02cad051e908b209081c0e88d6d0e59cb0a3309
5
5
  SHA512:
6
- metadata.gz: 57df2063a18c47d63891ec12f819e6a95bdaed4b9ddb4ed1803ac1c5fde0d8cb146d7bd306db2f75f1de9c16866e1f18fce09061d1999b7ae506df020ebb1878
7
- data.tar.gz: b34fb1a2b48174db5c68ea058775def4c403eb03255fbfa812f928405d60e050dba8319499fcfccd37aa2f089ef364b2446fbdcfd32413eda0c3e6dd7024ff13
6
+ metadata.gz: 372ba4f962dfdfaad225c65d2480442f88687b9dbcec47e140a3091fe3a10c3a0a6d0b075a0f7820f5ab13538ce981ddc1def307bb52009121118d3c38227e40
7
+ data.tar.gz: b00cc88b5c384d4fc683d59529bc3363c0e340387d27407af96162e8f0c53d0de780d250154e3ebaa4d99d6d73dd7d5115d632b93b684c909e240d6b633d37a8
data/lib/wco/profile.rb CHANGED
@@ -12,4 +12,8 @@ class Wco::Profile
12
12
 
13
13
  belongs_to :leadset, class_name: 'Wco::Leadset', inverse_of: :profile, optional: true
14
14
 
15
+ def self.list
16
+ all.map { |p| [ p.email, p.id ] }
17
+ end
18
+
15
19
  end
data/lib/wco/tag.rb CHANGED
@@ -11,5 +11,6 @@ class Wco::Tag
11
11
 
12
12
  # parent-child
13
13
 
14
+ has_and_belongs_to_many :email_conversations, class_name: 'WcoEmail::Conversation'
14
15
 
15
16
  end
@@ -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
- Lead.find( lead_ties.map( &:lead_id ) )
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
- # has_and_belongs_to_many :tags, class_name: 'WcoEmail::Tag'
37
+ has_and_belongs_to_many :tags, class_name: 'Wco::Tag'
38
38
 
39
- ## @TODO: test, rspec
40
- def self.in_tag tag
41
- case tag.class
42
- when String
43
- tag = WcoEmail::Tag.find_by slug: tag
44
- end
45
- where( :tag_ids => tag.id )
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.12
4
+ version: 3.1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - mac_a2141
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails