lib/hydra/batch_edit_behavior.rb in hydra-batch-edit-0.0.5 vs lib/hydra/batch_edit_behavior.rb in hydra-batch-edit-0.0.6

- old
+ new

@@ -56,10 +56,10 @@ def update batch.each do |doc_id| obj = ActiveFedora::Base.find(doc_id, :cast=>true) type = obj.class.to_s.underscore.to_sym - obj.update_attributes(params[type]) + obj.update_attributes(params[type].reject{|k, v| v.blank?}) obj.save end flash[:notice] = "Batch update complete" clear_batch! redirect_to catalog_index_path