Set up locale behavior introduced by rails 4