lib/ddr/derivatives/thumbnail.rb in ddr-models-3.0.0.beta.10 vs lib/ddr/derivatives/thumbnail.rb in ddr-models-3.0.0.beta.11
- old
+ new
@@ -19,11 +19,10 @@
def output_path(object)
File.join(workdir, output_file_name(object))
end
def output_file_name(object)
- basename = object.content.original_name.present? ? File.basename(object.content.original_name, '.*') : "thumbnail"
- "#{basename}.#{generator.class.output_extension}"
+ "thumbnail.#{generator.class.output_extension}"
end
def store(object, output_path)
output_file = File.open(output_path, 'rb')
object.reload if object.persisted?