After upgrading RestKit changed deprecated method to new method.