lib/assembly-objectfile/content_metadata.rb in assembly-objectfile-1.7.0 vs lib/assembly-objectfile/content_metadata.rb in assembly-objectfile-1.7.1

- old
+ new

@@ -191,9 +191,10 @@ :preserve => file_attributes_hash[:preserve], :publish => file_attributes_hash[:publish], :shelve => file_attributes_hash[:shelve], :role => file_attributes_hash[:role], }) + xml_file_params.reject! { |k, v| v.nil? || v.empty? } end xml_file_params.merge!({:mimetype => mimetype,:size => obj.filesize}) if add_exif xml.file(xml_file_params) { if add_exif # add exif info if the user requested it