diff options
author | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-27 13:56:39 +0200 |
---|---|---|
committer | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-27 13:56:39 +0200 |
commit | fd59a3a1d7d81f6a9b54e2f958b78d929f6db9fc (patch) | |
tree | 8ab715caba9071cb3f8e6ac1c8663e21d5f52eb1 | |
parent | 0ac5c03f169b3e3055040e84ca088df134c2bfbb (diff) | |
download | rails-fd59a3a1d7d81f6a9b54e2f958b78d929f6db9fc.tar.gz rails-fd59a3a1d7d81f6a9b54e2f958b78d929f6db9fc.tar.bz2 rails-fd59a3a1d7d81f6a9b54e2f958b78d929f6db9fc.zip |
We moved engine commands to rails/engine/commands
-rw-r--r-- | railties/lib/rails/commands.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb index 39627a3094..bf6644c782 100644 --- a/railties/lib/rails/commands.rb +++ b/railties/lib/rails/commands.rb @@ -23,11 +23,7 @@ when 'generate', 'destroy', 'plugin' require APP_PATH Rails.application.require_environment! - if defined?(ENGINE_PATH) && engine = Rails::Engine.find(ENGINE_PATH) - Rails.application.load_generators(engine) - else - Rails.application.load_generators - end + Rails.application.load_generators require "rails/commands/#{command}" end |