ArgumentError: wrong number of arguments (2 for 1)
when attempting to call the destroy method in the manner described on the readme.
The section in question clearly shows the sObject name being passed as the first argument, followed by a Salesforce ID (or an array of IDs as the case may be).
This no longer appears to work. Instead simply omitting the sObject name and passing the ID itself does the job (which makes sense anyway since the ID namespace is global across all sObjects in Salesforce, so there is no real need for the sObject name in this call anyways).
I’ve recently run into an issue where I get -
ArgumentError: wrong number of arguments (2 for 1)
when attempting to call the
destroy
method in the manner described on the readme.The section in question clearly shows the sObject name being passed as the first argument, followed by a Salesforce ID (or an array of IDs as the case may be).
This no longer appears to work. Instead simply omitting the sObject name and passing the ID itself does the job (which makes sense anyway since the ID namespace is global across all sObjects in Salesforce, so there is no real need for the sObject name in this call anyways).
Please update the doc accordingly.