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 +4 -4
- data/app/models/caboose_rets/rets_importer.rb +2 -1
- data/lib/caboose_rets/version.rb +1 -1
- 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: f1b4b6ff0c775671f9a244f839c13cef1434ff88aec91e6350986e90576dbd33
|
4
|
+
data.tar.gz: 4a73e4b7cfa26103d560b26a8186154dd178cecfe3997892cc41fc206dc21f07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
data/lib/caboose_rets/version.rb
CHANGED