RestKit/RestKit — pull request #1867 by veritech (2014-04-10 00:59:11+00:00)
Title: Passed blocks to newly created object request operations

The current implementation of *appropriateObjectRequestOperationWithObject:method:path:parameters:* in the RKObjectManager ignores block params passed by the various request methods. This becomes an issue if you override either the *managedObjectRequestOperationWithRequest* or *objectRequestOperationWithRequest* methods as the callbacks parameters are always set to nil.

To solve this I've added *success* and *failure* arguments to the original method, and set the callbacks at the time the request is created, thereby passing them to an overriden implementation of the *objectRequestOperationWithRequest* methods.

I've ensured the callbacks are passed in.

To ensure backward compatibility I've retained the original method signature, which simply passes nil arguments for the new parameters to the refactored method. This new method is also not publicly exposed, and behaves exactly as the old method did.