diff options
Diffstat (limited to 'railties/bin/gen')
-rwxr-xr-x | railties/bin/gen | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/bin/gen b/railties/bin/gen index 0567ab6058..f054d4e853 100755 --- a/railties/bin/gen +++ b/railties/bin/gen @@ -14,8 +14,10 @@ else ARGV.size == 1 ARGV << "--help" end -Dir[File.dirname(__FILE__) + '/../lib/generator/generators/*/*_generator.rb'].each do |file| - require file +require File.dirname(__FILE__) + '/../lib/generator' + +Rails::Generators.builtin.each do |name| + require "generator/generators/#{name}/#{name}_generator" end name = ARGV.shift |