Skip to content
Snippets Groups Projects
Commit 9ead1f1c authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

adding image thumbnail generator


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent 4bafb0f0
No related branches found
No related tags found
No related merge requests found
module Thumbnail
module Strategies
class ImageThumbnailGenerator < ::Thumbnail::GeneratableStrategy
def generate(media)
media
end
def can_generate?(media)
MimeMagic.by_magic(media).type =~ /image/
end
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment