rails/rails — pull request #13272 by the-web-dev (2013-12-11 13:27:20+00:00)
Title: Set STI type column correctly when calling becomes!

The becomes! method is currently broken and need to be called a second time to correctly set the type column when changing from the base model to a sub-class.