Permalink
Browse files

preserve Rails::Plugin::GemLocator in default_plugin_locators

  • Loading branch information...
1 parent bc5cd97 commit 2ebb65a1560024dd0c42049a8eb0e5d17989d8f4 @DerGuteMoritz DerGuteMoritz committed Aug 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 boot.rb
View
2 boot.rb
@@ -10,7 +10,7 @@
# initialize Rails::Configuration with our own default values to spare users
# some hassle with the installation and keep the environment cleaner
-{ :default_plugin_locators => [Engines::Plugin::FileSystemLocator],
+{ :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator),
:default_plugin_loader => Engines::Plugin::Loader,
:default_plugins => [:engines, :all] }.each do |name, default|
Rails::Configuration.send(:define_method, name) { default }

0 comments on commit 2ebb65a

Please sign in to comment.