Integration of legacy into Rails