Skip to content

Commit

Permalink
Ensure that app generator is not loaded twice to get rid of warnings
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
drogus authored and josevalim committed Nov 22, 2010
1 parent f821055 commit 115abd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators.rb
Expand Up @@ -302,6 +302,7 @@ def self.lookup! #:nodoc:
$LOAD_PATH.each do |base| $LOAD_PATH.each do |base|
Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path| Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path|
begin begin
path = path.sub("#{base}/", "")
require path require path
rescue Exception => e rescue Exception => e
# No problem # No problem
Expand Down

0 comments on commit 115abd5

Please sign in to comment.