Skip to content

Commit

Permalink
Merge pull request #1346 from mshibuya/fix-duplicated-rmagick-loading
Browse files Browse the repository at this point in the history
Skip loading RMagick if already loaded
  • Loading branch information
bensie committed Apr 3, 2014
2 parents 2284a37 + 9e6f213 commit c0bb87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/processing/rmagick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module RMagick

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

0 comments on commit c0bb87f

Please sign in to comment.