summaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-21 19:59:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-21 19:59:43 +0000
commit09bf503fd2d46bcc17fbf84faaf16e651a28583c (patch)
tree2325405a7837928ccc3d5c9da25caf30b38e6e0b /config/environment.rb
parent35a14cbfdc9fb65e046d22af02dbf95398284b5d (diff)
downloadredmine-09bf503fd2d46bcc17fbf84faaf16e651a28583c.tar.gz
redmine-09bf503fd2d46bcc17fbf84faaf16e651a28583c.zip
Load Engines plugin if available (closes #180).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1281 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index e203227e6..2d581168b 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -7,6 +7,13 @@
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
+# Load Engine plugin if available
+begin
+ require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
+rescue LoadError
+ # Not available
+end
+
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence those specified here