Skip to content

Commit

Permalink
Require rmagick first instead of deprecated RMagick, closes carrierwa…
Browse files Browse the repository at this point in the history
…veuploader#1681

# Conflicts:
#	lib/carrierwave/processing/rmagick.rb
  • Loading branch information
bensie authored and Jason Adam Young committed Jan 21, 2016
1 parent 3a0978a commit 167b4ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/carrierwave/processing/rmagick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ module RMagick

included do
begin
require "rmagick"
rescue LoadError
require "RMagick"
rescue LoadError => e
e.message << " (You may need to install the rmagick gem)"
Expand Down

0 comments on commit 167b4ca

Please sign in to comment.