ish_models 0.0.33.208 → 0.0.33.210
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/office/email_conversation.rb +2 -2
- data/lib/office/email_message.rb +1 -1
- data/lib/video.rb +11 -7
- 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: 46e7967e2f0d884e8c5ff8a5a6e6d54aed2cc64b605a286ed40f3e2b9417fcdd
|
4
|
+
data.tar.gz: bd0fb0ca21faef2ed8f2d42068756087fa80b5199fd887552a2989411b187145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab02dca3ecf3add944f5f35bb1ed4977996acd81dd7fc33570307a7826d120a2fce295785d8d4fde754c3e516f1b73d0dcb9cdee28b40698188a5ee771211e4a
|
7
|
+
data.tar.gz: d41c6bb9bd15965fec727922217d2095b386770f9f6511bb6de0c1610fe156194da3656e6245574a258a0cc02c7c5db9a4312da2fc6cd96b6f38fba57c23bf3b
|
@@ -39,7 +39,7 @@ class Office::EmailConversation
|
|
39
39
|
when 'String'
|
40
40
|
tag = WpTag.emailtag(tag)
|
41
41
|
else
|
42
|
-
throw "#add_tag expects a WpTag or string (eg WpTag::
|
42
|
+
throw "#add_tag expects a WpTag or string (eg WpTag::INBOX) as the only parameter."
|
43
43
|
end
|
44
44
|
self[:wp_term_ids] = ( [ tag.id ] + self[:wp_term_ids] ).uniq
|
45
45
|
self.save!
|
@@ -52,7 +52,7 @@ class Office::EmailConversation
|
|
52
52
|
when 'String'
|
53
53
|
tag = WpTag.emailtag(tag)
|
54
54
|
else
|
55
|
-
throw "#remove_tag expects a WpTag or string (eg WpTag::
|
55
|
+
throw "#remove_tag expects a WpTag or string (eg WpTag::INBOX) as the only parameter."
|
56
56
|
end
|
57
57
|
self[:wp_term_ids] = self[:wp_term_ids] - [ tag.id ]
|
58
58
|
out = self.save!
|
data/lib/office/email_message.rb
CHANGED
@@ -10,7 +10,7 @@ class Office::EmailMessage
|
|
10
10
|
|
11
11
|
field :message_id, type: :string # MESSAGE-ID
|
12
12
|
validates_uniqueness_of :message_id
|
13
|
-
index({ message_id: 1 }, { unique: true, name: "
|
13
|
+
index({ message_id: 1 }, { unique: true, name: "id_idx" })
|
14
14
|
|
15
15
|
field :in_reply_to_id, type: :string
|
16
16
|
|
data/lib/video.rb
CHANGED
@@ -16,6 +16,7 @@ class Video
|
|
16
16
|
|
17
17
|
field :name, :type => String
|
18
18
|
field :descr, :type => String, :as => :description
|
19
|
+
field :subhead ## still need it... 2023-03-24
|
19
20
|
|
20
21
|
field :is_trash, :type => Boolean, :default => false
|
21
22
|
def is_trash
|
@@ -27,28 +28,23 @@ class Video
|
|
27
28
|
end
|
28
29
|
|
29
30
|
field :is_public, :type => Boolean, :default => false
|
30
|
-
field :is_feature, :type => Boolean, :default => false
|
31
31
|
|
32
32
|
field :x, type: Float
|
33
33
|
field :y, type: Float
|
34
34
|
field :z, type: Float
|
35
35
|
|
36
|
-
field :lang, :type => String, :default => 'en'
|
37
|
-
|
38
36
|
field :youtube_id
|
39
37
|
validates_uniqueness_of :youtube_id, allow_blank: true, case_sensitive: false
|
40
38
|
before_save { youtube_id.present? || youtube_id = nil }
|
41
39
|
|
42
40
|
belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
|
43
41
|
|
42
|
+
index({ is_trash: 1, user_profile_id: 1, created_at: 1 }, { name: 'idx1' })
|
43
|
+
|
44
44
|
def self.list
|
45
45
|
[['', nil]] + Video.unscoped.order_by( :created_at => :desc ).map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
|
46
46
|
end
|
47
47
|
|
48
|
-
|
49
|
-
field :issue
|
50
|
-
field :subhead
|
51
|
-
|
52
48
|
has_mongoid_attached_file :video,
|
53
49
|
# styles: { :thumb => { geometry: '192x108', format: 'jpeg' }, },
|
54
50
|
# processors: [ :transcoder ],
|
@@ -94,3 +90,11 @@ class Video
|
|
94
90
|
|
95
91
|
|
96
92
|
end
|
93
|
+
|
94
|
+
|
95
|
+
=begin
|
96
|
+
field :issue
|
97
|
+
|
98
|
+
field :is_feature, :type => Boolean, :default => false
|
99
|
+
field :lang, :type => String, :default => 'en'
|
100
|
+
=end
|