norman / has_image

A lightweight and opinionated but hackable library for attaching images to ActiveRecord models.

This URL has Read+Write access

has_image / init.rb
100644 9 lines (6 sloc) 0.173 kb
1
2
3
4
5
6
7
8
9
def imagemagick_installed?
  `which identify`
   $?.success?
end
 
require 'has_image'
 
abort 'ImageMagick not found in PATH. Is it installed?' unless imagemagick_installed?