lib/attached/image.rb in attached-0.1.0 vs lib/attached/image.rb in attached-0.1.1
- old
+ new
@@ -1,7 +1,13 @@
require 'attached/processor'
-require 'rmagick'
+begin
+ require 'rmagick'
+rescue LoadError
+ require 'RMagick'
+rescue LoadError
+ raise "Installation of 'rmagick' is required before using the 'image' processor"
+end
module Attached
class Image < Processor