rails/rails — pull request #10737 by ptn (2013-05-23 13:21:13+00:00)
Title: Strip extra "controller" from a generated controller name

This happens to me all the time:

`rails generate controller Admin::FoosController`

and so I end up with crap called `FoosControllerController`. This strips the extra `controller` at the end. I'm not sure about the implementation though, I'd never overridden a protected method before... feedback?

/cc. @mperham @vipulnsward