rails/rails — pull request #4469 by guilleiguaran (2012-01-14 22:10:49+00:00)
Title: Don't hardcode assets route skipped in route inspector

Right now generating a resource named asset with scaffold and setting ```config.assets.prefix = '/sprockets'``` (to avoid conflicting with generated resources) the output of ```rake routes``` is:

```
/tmp/foo % rake routes
/sprockets #
```

This have two issues, the first one is that any of the routes prefixed with /assets is shown and the second one is that the /sprockets one shouldn't be shown.

After of apply this patch, the output ```rake routes``` is the expected:

```
/tmp/foo % rake routes
assets GET /assets(.:format) assets#index
POST /assets(.:format) assets#create
new_asset GET /assets/new(.:format) assets#new
edit_asset GET /assets/:id/edit(.:format) assets#edit
asset GET /assets/:id(.:format) assets#show
PUT /assets/:id(.:format) assets#update
DELETE /assets/:id(.:format) assets#destroy
```