caboose-rets 0.1.200 → 0.1.201

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: e58a15caa7ab2646f05b78313f01811c7ce5a7325c65d0ae365c0e55a70a4b82
4
- data.tar.gz: 0dee44f4abd7a2253da39c0c6bec415b82c053e0868765ffb4b5026da4a05860
3
+ metadata.gz: f1b4b6ff0c775671f9a244f839c13cef1434ff88aec91e6350986e90576dbd33
4
+ data.tar.gz: 4a73e4b7cfa26103d560b26a8186154dd178cecfe3997892cc41fc206dc21f07
5
5
  SHA512:
6
- metadata.gz: 9ff636613c91556cfbaee76ff81bb6bc5c193fbc9404043fa65b0832aa1e1baced9ab92a938272b83fea464741d1a469442cac824afe2241f1bdc4222744a06c
7
- data.tar.gz: 0ebe526e708478a86bc6fbcc6015a2e051e6e9bbbf86cc8f90febc382f930331d5850e784f6314ca1c70a6b04b2bbd9ec6579039dac6c5ffdb99d36654369a33
6
+ metadata.gz: e6ad2462c021a949d8ddfa45ebabd09d9a6b5b503364008863f41bc8b296c1d83f385917abea7ea7e33c369e78c0e577882c518b34ea56986d3f8be4ecd4c521
7
+ data.tar.gz: 85a52e88f700a5a84e06a65d4c0767c8059901d9fa65288dd4674e6ff849b0677a2e7a4e1172408e6ac9f0068a65f74139ed3e14ec26f2277226f7903a426b9a
@@ -314,7 +314,8 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
314
314
 
315
315
  old_cm_id = is_new ? nil : m.media_id
316
316
 
317
- cm = is_new ? Caboose::Media.new : Caboose::Media.where(:id => old_cm_id).first
317
+ cm = Caboose::Media.where(:id => old_cm_id).first
318
+ cm = Caboose::Media.new if cm.nil?
318
319
 
319
320
  cm.name = "rets_media_#{photo['ResourceRecordKey']}_#{ind}"
320
321
  cm.save
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.200'
2
+ VERSION = '0.1.201'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.200
4
+ version: 0.1.201
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry