diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:15:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:15:52 +0000 |
commit | bd10a712177e8b13dd95b6a55ae195c2d33b3ef0 (patch) | |
tree | 12686baa767b7960d9e6aa330eb5cbd27365cb34 | |
parent | 5b21efd4a432263af5521a60d99785effad7f83b (diff) | |
download | redmine-bd10a712177e8b13dd95b6a55ae195c2d33b3ef0.tar.gz redmine-bd10a712177e8b13dd95b6a55ae195c2d33b3ef0.zip |
Load RMagick before the gantt helper (#12097).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10915 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine.rb | 12 |
1 files 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 |