app/controllers/hyrax/downloads_controller.rb in hyrax-2.1.0 vs app/controllers/hyrax/downloads_controller.rb in hyrax-2.2.0

- old
+ new

@@ -74,10 +74,10 @@ asset.class.default_file_path else DownloadsController.default_content_path end association = dereference_file(default_file_reference) - association.reader if association + association&.reader end def mime_type_for(file) MIME::Types.type_for(File.extname(file)).first.content_type end