[file_column] Storing more documents with :magick

Since I unfortunately could not get an answer from the author of this
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
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
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” } }

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs