ish_models 3.1.0.11 → 3.1.0.13

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: 1b627aad79581526f09eb54fc4ccbc0008a196def8f094ccdcc4040056f176ec
4
- data.tar.gz: e06ce92b8f549fdb0d5909d4d338aef318388c90f63869c9baa89e52afdf9705
3
+ metadata.gz: c46fe1a3c912f44bfea7b3c8860504d9e43dc58ac5c61d2b78f54d9b3604d5df
4
+ data.tar.gz: 24db6889ed4f929a9efb76f8ecb583923468902b49b41a189c2552d0d68ecfa9
5
5
  SHA512:
6
- metadata.gz: 7ab2ea04a6d77d2f4245f330ce5cee822169b7a1449f8f92936c583f2099472088770f96123bf8a6f57466c1e3e2ceccb6924f09f0a7a7fc8697096042e46001
7
- data.tar.gz: b0f242406016f9b680964a984564f428b70c80aed5cab8dfcf5ab602b9fb2780a98b601cdd1f01d2a5b02611f53d1ea6c25c6dec0bcb6ccd4cb5ce5a3946c3ed
6
+ metadata.gz: 47ad49ab1c7a3890c57da215dbdc261d0d04d55b61d8c1f1e286bccbed161f445f69a73e9fee8ad2a4c6e24be2b1d18fc9ebffdd61df085f78e00779799893be
7
+ data.tar.gz: 89322ee3df01c880d551299c79f13015fb80e25fb31d9e3a73f09e8d7ed34ebc74e550d33acee70680484f38cf14d94e59dcc9b7e05802592436fcdb1e226f37
data/lib/ish_models.rb CHANGED
@@ -14,6 +14,7 @@ require 'wco/office_action'
14
14
  require 'wco/profile'
15
15
  require 'wco/tag'
16
16
 
17
+ require 'wco_email/campaign'
17
18
  require 'wco_email/context'
18
19
  require 'wco_email/conversation'
19
20
  require 'wco_email/email_filter'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.11
4
+ version: 3.1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - mac_a2141