wco_models 3.1.0.48 → 3.1.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco_email/message.rb +4 -4
- 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: 59ffec6c4c869d7be3284372fee1f1fd256be7be9d91aab789de5a3a16d5341e
|
4
|
+
data.tar.gz: ecff78bf5d5cfd33376287ccf3dff091b098879f592c3c88aa41d6104edddfa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a84b80a2f8388394c496423fbc35c7eb05bd0f1d67172266ddeb429cfb37e147d496fe5e9370741766ccfbf0dd3d04bf0e2f43c6fb7485e63b67ef25da802d
|
7
|
+
data.tar.gz: ab9b15349faffb29f3bcfc011ce4c75c7c73c418d04239d872cf9bedc29eea51b5a76166ac9924e901449da48e12ad5f27e6a7cfc411efd28dc0cf41deb8009f
|
@@ -67,8 +67,8 @@ class WcoEmail::Message
|
|
67
67
|
|
68
68
|
belongs_to :stub, class_name: 'WcoEmail::MessageStub'
|
69
69
|
|
70
|
-
has_many :assets, class_name: 'Wco::Asset'
|
71
|
-
has_many :photos, class_name: 'Wco::Photo'
|
70
|
+
has_many :assets, class_name: '::Wco::Asset'
|
71
|
+
has_many :photos, class_name: '::Wco::Photo'
|
72
72
|
|
73
73
|
def apply_filter filter
|
74
74
|
case filter.kind
|
@@ -192,7 +192,7 @@ class WcoEmail::Message
|
|
192
192
|
|
193
193
|
content_type = att.content_type.split(';')[0]
|
194
194
|
if content_type.include? 'image'
|
195
|
-
photo = Wco::Photo.new({
|
195
|
+
photo = ::Wco::Photo.new({
|
196
196
|
content_type: content_type,
|
197
197
|
email_message_id: self.id,
|
198
198
|
image_data: att.body.encoded,
|
@@ -207,7 +207,7 @@ class WcoEmail::Message
|
|
207
207
|
File.open("/tmp/#{filename}", 'w:UTF-8:ASCII-8BIT') do |f|
|
208
208
|
f.puts(sio.read)
|
209
209
|
end
|
210
|
-
asset = Wco::Asset.new({
|
210
|
+
asset = ::Wco::Asset.new({
|
211
211
|
email_message: self,
|
212
212
|
filename: filename,
|
213
213
|
object: File.open("/tmp/#{filename}"),
|