rails/rails — pull request #14887 by estsauver (2014-04-28 04:35:16+00:00)
Title: Force change on becomes for STI instances, Fixes #14785

For STI models, after there is a becomes!, the record becomes
unreachable because it has the wrong type for the class it has
been cast to.

This change updates the type attribute as part of the conversion,
so the model can continue to be reached.