diff options
Diffstat (limited to 'railties/bin/gen')
-rwxr-xr-x | railties/bin/gen | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/bin/gen b/railties/bin/gen index ad3a793610..fab4866407 100755 --- a/railties/bin/gen +++ b/railties/bin/gen @@ -10,7 +10,7 @@ end if ARGV.size == 0 puts "Please select a generator. Options: foo, bar" return -else ARGV.size == 1 +elsif ARGV.size == 1 ARGV << "--help" end @@ -22,7 +22,7 @@ end name = ARGV.shift -if klass = Thor::Util.find_by_namespace("rails:#{name}") +if klass = Thor::Util.find_by_namespace("rails:generators:#{name}") klass.start elsif klass = Thor::Util.find_by_namespace(name) klass.start |