This project is archived and is in readonly mode.
Make sure that generator's default banner is showing its namespace
Reported by Prem Sichanugrist (sikachu) | December 31st, 2010 @ 05:18 PM | in 3.0.5
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!
Comments and changes to this ticket
-
Prem Sichanugrist (sikachu) December 31st, 2010 @ 05:53 PM
- Milestone cleared.
Seems like I forgot the patch. Here's the patch
-
Prem Sichanugrist (sikachu) January 1st, 2011 @ 08:26 PM
- State changed from open to resolved
This has been applied in these commits:
https://github.com/rails/rails/commit/fd1daf9a8e751aaa700a18d6ac9c4...
https://github.com/rails/rails/commit/6ae9e9b9af5d8d42b312cc4c3b00a...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>