fixed deprecated railties calls