From bd10a712177e8b13dd95b6a55ae195c2d33b3ef0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 2 Dec 2012 19:15:52 +0000 Subject: [PATCH] Load RMagick before the gantt helper (#12097). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10915 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/redmine.rb b/lib/redmine.rb index 8f4627e95..94c9bdfdf 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -17,6 +17,12 @@ require 'redmine/core_ext' +begin + require 'RMagick' unless Object.const_defined?(:Magick) +rescue LoadError + # RMagick is not available +end + require 'redmine/about' require 'redmine/access_control' require 'redmine/access_keys' @@ -53,12 +59,6 @@ require 'redmine/themes' require 'redmine/hook' require 'redmine/plugin' -begin - require 'RMagick' unless Object.const_defined?(:Magick) -rescue LoadError - # RMagick is not available -end - if RUBY_VERSION < '1.9' require 'fastercsv' else