Rails4 upgrade changes on plato so this needs to be changed.