app/models/spotlight/exhibit.rb in blacklight-spotlight-3.0.0.alpha.9 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-3.0.0.alpha.10

- old
+ new

@@ -98,11 +98,13 @@ def to_s title end def import(hash) - Spotlight::ExhibitExportSerializer.prepare(self).from_hash(hash) - self + ActiveRecord::Base.transaction do + Spotlight::ExhibitImportExportService.new(self).from_hash!(hash) + save + end end def solr_data filters.each_with_object({}) do |filter, hash| hash.merge! filter.to_hash