Skip to content
Browse files

Ensure that app generator is not loaded twice to get rid of warnings

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent f821055 commit 115abd52b6bf6801dce7c3fbcb0e29d4213a5bb2 @drogus drogus committed with josevalim Nov 21, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/generators.rb
View
1 railties/lib/rails/generators.rb
@@ -302,6 +302,7 @@ def self.lookup! #:nodoc:
$LOAD_PATH.each do |base|
Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path|
begin
+ path = path.sub("#{base}/", "")
require path
rescue Exception => e
# No problem

0 comments on commit 115abd5

Please sign in to comment.
Something went wrong with that request. Please try again.