The idea is never to give a Upload File to a view. That must
always work with a File Presenter providing overwrite methods
and specific views/partials.
ActionItem2373
# Made to encapsulate any UploadedFile
class FilePresenter::Generic < FilePresenter
def initialize(f)
@file = f
end
# if returns low priority, because it is generic.
def self.accepts?(f)
1 if f.is_a? UploadedFile
end
end