changing deprecated config for RoR 2/4