rails/rails — pull request #8301 by danbob (2012-11-23 17:24:15+00:00)
Title: fix remove_constant

I'm developing an app in edge rails and recently I've been getting the exceptions "A copy of Cms has been removed from the module tree but is still active!" and "Circular dependency detected while autoloading constant Cms::BaseController" whenever I made code changes (Cms is my controller namespace). I tracked the problem down to bff4d8d165486797227c5933e93a62e7f2c15d98 where a particular line of code was removed. Restoring this line fixes my issue.

As you can probably tell I know very little about the internals of rails, so I don't know if restoring this line causes problems elsewhere.