Fixed: RMagick not loaded on case sensitive filesystems.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@741 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f23daffd7d
commit
eb371db5b9
|
@ -5,7 +5,7 @@ require 'redmine/acts_as_watchable/init'
|
||||||
require 'redmine/acts_as_event/init'
|
require 'redmine/acts_as_event/init'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require_library_or_gem 'rmagick' unless Object.const_defined?(:Magick)
|
require_library_or_gem 'RMagick' unless Object.const_defined?(:Magick)
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
# RMagick is not available
|
# RMagick is not available
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue