app/models/import.rb in reso-0.1.6 vs app/models/import.rb in reso-0.1.6.1
- old
+ new
@@ -126,11 +126,10 @@
begin
doc.css(import.repeating_element).each do |o|
listing_data = {}
Hash.from_xml(o.to_xml)[import.repeating_element].each_pair{|key, value| listing_data[key] = value }
queued_listing = QueuedListing.new(import: import, listing_data: listing_data)
- QueuedListing.import Array(queued_listing), :validate => false
-# queued_listing.save
+ queued_listing.save
return Mapper::unique_identifier(queued_listing)
end
rescue Exception => e
puts e.inspect
exit if Rails.env.development?