summaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
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