##// END OF EJS Templates
Upgrade the Engines plugin to get the bugfix for Rails::Plugin::GemLocator...
Eric Davis -
r2790:bcbf08017a5f
parent child
Show More
@@ -10,7 +10,7 require File.join(File.dirname(__FILE__), 'lib/engines')
10 10 # initialize Rails::Configuration with our own default values to spare users
11 11 # some hassle with the installation and keep the environment cleaner
12 12
13 { :default_plugin_locators => [Engines::Plugin::FileSystemLocator],
13 { :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator),
14 14 :default_plugin_loader => Engines::Plugin::Loader,
15 15 :default_plugins => [:engines, :all] }.each do |name, default|
16 16 Rails::Configuration.send(:define_method, name) { default }
@@ -48,7 +48,7 class PluginMigrationGenerator < Rails::Generator::Base
48 48 end
49 49 end
50 50
51 @plugins_to_migrate.reject! { |p| p.latest_migration.nil? }
51 @plugins_to_migrate.reject! { |p| !p.respond_to?(:latest_migration) || p.latest_migration.nil? }
52 52
53 53 # Then find the current versions from the database
54 54 @current_versions = {}
General Comments 0
You need to be logged in to leave comments. Login now