This project is archived and is in readonly mode.

#5225 ✓resolved
Fred Wu

AppGenerator generates incorrect application module name under certain circumstances

Reported by Fred Wu | July 28th, 2010 @ 04:53 AM

In situations such as running rake rails:update:configs for an existing rails app, the generated files contain application module name Config. This is caused by the destination_root being set to the 'config' folder.

In order to solve this, we need to check to see if an application module name has already been given. If so, use the existing module name, otherwise try figure out the name from the root folder (which is the old behaviour).

Attached is the patch for the fix.

P.S. The patch is against the rails master (as of the time of submitting this ticket).

Comments and changes to this ticket

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>