ish_models 0.0.33.299 → 0.0.33.301

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: fa44087f500e7920ced4feaf0beb2374ec5cc3a022b64c37b8543c6437ebb2b8
4
- data.tar.gz: 1ec1b0bd08816c041822cd8633015f88084f02dc2cdb846ea8b9e5b99331560b
3
+ metadata.gz: 4efc52be97806ddfc99cbb6fa6cc0c183e51a0f32384d789906a98793906616d
4
+ data.tar.gz: '084169118e8a9e6c4ef65f07ab3c5cfbc79c77136f6d3974adc1f29b1a0157f0'
5
5
  SHA512:
6
- metadata.gz: 1343879402cbe9523d920f87ba9a12b39c7a5e9438d14383ef9cb08b2022dd4b4ef75f5da6104fea82cf8015e757e04685ec49bfb8f5d11c0fae1c45400dd452
7
- data.tar.gz: 955585c6273244c0b72880213d9edbbeee90050f48f1260183c3e9e0a04fa3303247625477eea1afdf09116405f7aa08190adcf2835b46e72efce4b486576282
6
+ metadata.gz: 0bd8bf92613eb20ab1518dc9fabe62dba096000845dc691b39946cff8a4b4578905e0ee5f57121394fede7539326d0c1df56ff783356614dbdde250f0ab07c84
7
+ data.tar.gz: a3aa5e12b8ada259599b578f67dabfab9c0e2e283fa00d03f03e5cefc9e3f2e7fcfae14a912cfabdcba0cd7f786b1442a9b7851fe4400f52ce9015dff2b33934
@@ -8,8 +8,9 @@ class ::Gameui::Asset3d
8
8
  include Mongoid::Paperclip
9
9
  include Ish::Utils
10
10
 
11
- belongs_to :marker, class_name: 'Gameui::Marker', optional: true
12
- belongs_to :invoice, class_name: 'Ish::Invoice', optional: true
11
+ belongs_to :marker, class_name: 'Gameui::Marker', optional: true
12
+ belongs_to :invoice, class_name: 'Ish::Invoice', optional: true
13
+ belongs_to :email_message, class_name: 'Office::EmailMessage', optional: true, inverse_of: :asset3ds
13
14
 
14
15
  has_mongoid_attached_file :object,
15
16
  :storage => :s3,
@@ -29,3 +30,4 @@ class ::Gameui::Asset3d
29
30
  end
30
31
 
31
32
  end
33
+ GA3 = ::Gameui::Asset3d
@@ -54,6 +54,7 @@ class Office::EmailMessage
54
54
  end
55
55
 
56
56
  has_many :email_attachments, class_name: 'Office::EmailAttachment', inverse_of: :email_message
57
+ has_many :asset3ds, class_name: 'Gameui::Asset3d', inverse_of: :email_message
57
58
  has_many :attachments, class_name: 'Photo'
58
59
 
59
60
 
@@ -151,10 +152,10 @@ class Office::EmailMessage
151
152
  # attachment.save
152
153
 
153
154
  if part.content_type.include?('text/html')
154
- part_html = part.decoded
155
+ self.part_html = part.decoded
155
156
 
156
157
  elsif part.content_type.include?("text/plain")
157
- part_txt = part.decoded
158
+ self.part_txt = part.decoded
158
159
 
159
160
  elsif part.content_type.include?("text/calendar")
160
161
  ;
@@ -166,7 +167,7 @@ class Office::EmailMessage
166
167
  ;
167
168
 
168
169
  else
169
- puts! part.content_type, '444 No action for a part with this content_type'
170
+ self.logs.push "444 No action for a part with content_type #{part.content_type}"
170
171
 
171
172
  end
172
173
  end
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: 0.0.33.299
4
+ version: 0.0.33.301
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox