summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-26 07:55:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-26 07:55:57 +0000
commitedba1f692b5a2648392718834a5cb8fb244b7ca6 (patch)
tree437ad518019f8f36bf32a9d181b5bcabe9beca32 /lib/redmine.rb
parentc1eb587c6dcc9b955a1718bf431c8db77ed3bd5e (diff)
downloadredmine-edba1f692b5a2648392718834a5cb8fb244b7ca6.tar.gz
redmine-edba1f692b5a2648392718834a5cb8fb244b7ca6.zip
Gantt chart can now be exported to a graphic file (png).
This functionality is only available if RMagick is present. git-svn-id: http://redmine.rubyforge.org/svn/trunk@666 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index f65715899..9fc2a103b 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -2,4 +2,10 @@ require 'redmine/version'
require 'redmine/mime_type'
require 'redmine/acts_as_watchable/init'
+begin
+ require_library_or_gem 'rmagick' unless Object.const_defined?(:Magick)
+rescue LoadError
+ # RMagick is not available
+end
+
REDMINE_SUPPORTED_SCM = %w( Subversion Darcs Mercurial Cvs )