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
class FilePresenter::Image < FilePresenter
def initialize(f)
@file = f
end
def self.accepts?(f)
f.image? ? 10 : nil
end
def icon_name
article.public_filename :icon
end
end