Update files for migrating to rails 4