Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

treat USAGE as an ERB template #3494

merged 1 commit into from Nov 2, 2011


None yet
2 participants

sinisterchipmunk commented Nov 2, 2011

This addition will allow the USAGE files generated by the 'generator' generator to embed Ruby code, allowing the resultant generator to modify its help message depending on the context in which it was invoked.

I've now found myself missing this functionality in my 3rd generator-heavy app, so I thought maybe my edge case wasn't so "edge". Hence the pull request.

@josevalim josevalim added a commit that referenced this pull request Nov 2, 2011

@josevalim josevalim Merge pull request #3494 from sinisterchipmunk/usage-erb
treat USAGE as an ERB template

@josevalim josevalim merged commit 982a0f3 into rails:master Nov 2, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment