[file_column] Storing more documents with :magick


#1

Since I unfortunately could not get an answer from the author of this
great
plugin, maybe some of you may have an issue here on this list.
I wish to keep the :magick argument for file_column. Of course only
uploaded
images should be resized but using the :magick argument doesn’t allow
you to
upload other kind of documents such as pdf files. I assume there is no
meta
type recognition (image and not image - text document, movie, etc.) but
sadly no error is raised when uploading something else but an image.

Here is my model used with the plugin (last week SVN):

require ‘file_column’
class Media < ActiveRecord::Base
file_column :file, :magick => { :versions => { “thumb” => “50x50”,
“medium” => “480x360” } }
end