lib/ddr/derivatives/thumbnail.rb in ddr-models-3.0.0.beta.9 vs lib/ddr/derivatives/thumbnail.rb in ddr-models-3.0.0.beta.10
- old
+ new
@@ -26,11 +26,11 @@
end
def store(object, output_path)
output_file = File.open(output_path, 'rb')
object.reload if object.persisted?
- object.add_file output_file, path: Ddr::Datastreams::THUMBNAIL, mime_type: generator.class.output_mime_type
+ object.add_file output_file, path: Ddr::Models::File::THUMBNAIL, mime_type: generator.class.output_mime_type
object.save!
end
end
-end
\ No newline at end of file
+end