added custom railties gem with a small modification.