Fix Rails constants reloading compatibility

* Now classes must be named