ish_models 0.0.33.208 → 0.0.33.209
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 +10 -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: a1d881ee26c3ebc1d7ebd70d700f2f2bb48698e1cf0dc3bccaa892f5c66a05d3
|
4
|
+
data.tar.gz: afb800653429e3c29209199d4da42b566b4a1acf5059e2c03c5d8ae174d06ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba5ce659689e9efd867bdd423262afcc4f5a70ab19f5cd1f0d4e6a39a30b3ded49eee02973911d882b6156c265282f103b806a4e6068b5231ec0fad28727c573
|
7
|
+
data.tar.gz: 7c6745e4f7a230fea262b2f9f99da14dd36872afe1bd6ac16ac93f98a932648ae34dc719e87fbe13f9d2fa9b0327182c755ae845367efb9d7dde32bb2a418802
|
@@ -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
@@ -27,28 +27,23 @@ class Video
|
|
27
27
|
end
|
28
28
|
|
29
29
|
field :is_public, :type => Boolean, :default => false
|
30
|
-
field :is_feature, :type => Boolean, :default => false
|
31
30
|
|
32
31
|
field :x, type: Float
|
33
32
|
field :y, type: Float
|
34
33
|
field :z, type: Float
|
35
34
|
|
36
|
-
field :lang, :type => String, :default => 'en'
|
37
|
-
|
38
35
|
field :youtube_id
|
39
36
|
validates_uniqueness_of :youtube_id, allow_blank: true, case_sensitive: false
|
40
37
|
before_save { youtube_id.present? || youtube_id = nil }
|
41
38
|
|
42
39
|
belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
|
43
40
|
|
41
|
+
index({ is_trash: 1, user_profile_id: 1, created_at: 1 }, { name: 'idx1' })
|
42
|
+
|
44
43
|
def self.list
|
45
44
|
[['', nil]] + Video.unscoped.order_by( :created_at => :desc ).map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
|
46
45
|
end
|
47
46
|
|
48
|
-
|
49
|
-
field :issue
|
50
|
-
field :subhead
|
51
|
-
|
52
47
|
has_mongoid_attached_file :video,
|
53
48
|
# styles: { :thumb => { geometry: '192x108', format: 'jpeg' }, },
|
54
49
|
# processors: [ :transcoder ],
|
@@ -94,3 +89,11 @@ class Video
|
|
94
89
|
|
95
90
|
|
96
91
|
end
|
92
|
+
|
93
|
+
|
94
|
+
=begin
|
95
|
+
field :issue
|
96
|
+
field :subhead
|
97
|
+
field :is_feature, :type => Boolean, :default => false
|
98
|
+
field :lang, :type => String, :default => 'en'
|
99
|
+
=end
|