Skip to content

Commit

Permalink
Skip loading RMagick if already loaded. Refs carrierwaveuploader#1205,
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Mar 17, 2014
1 parent 7a99354 commit 9e6f213
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 9e6f213

Please sign in to comment.