Delegate everything to generator.

Delegate everything to generator.

Another go at

https://github.com/rails/rails/commit/0904e8256864239f673bf91fce1cfffb9345ee61

which doesn't seem to break now.

cc @amatsuda