Don't use revision(), because is not a class method anymore, it's a property.