Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Make sure that generator's default banner is showing its namespace

#6241

Currently if you run a namespaced generator help message, it would show up only the latter part of the generator:

[~/Projects/test_edge] rails g rspec:install --help
Usage:
  rails generate install  [options]

I found out that there's a method name namespace which returns the correct generator with namespaced name, so now if you run it it would be:

[~/Projects/test_edge] rails g rspec:install --help
Usage:
  rails generate rspec:install [options]

However, for those Rails's internal generators, it would show the default rails: namespace. So I have to #sub those out.

I don't see where I should put the test for this functionality. If the test is required, please guide me the best place for it.

Thank you, and happy new year!

Reported by Prem Sichanugrist (sikachu) · December 31st, 2010 @ 05:18 PM

State: resolved
Milestone: 3.0.5
Assigned to: José Valim José Valim
Importance: Low