In order to implement some custom behavior for interacting with my API, I needed a hook to modify the request parameters sent when creating / updating my model.
In my case, I wanted to convert instances of a 'sub-model' to Rails' nested attribute parameter convention by changing params[:child_models] into params[:child_models_attributes]
Convert model objects into request parameters with a overrideable hel…
This pull request passes (merged f4aca27 into 98eacd6).
This is a useful method, thanks for adding it. I merged it in e8542c9.