infopark / webcrm_sdk

SDK for Infopark WebCRM
MIT License
2 stars 2 forks source link

log subscriber supports array requests and responses #13

Closed thomasritz closed 5 years ago

thomasritz commented 5 years ago

fixes issue #12

Problem: Rails 5 parameter filter crashes when the input is an array rather than a hash. But is still works when the nested values are arrays. So my solution is to wrap the request and response params in a hash with the only key data, e.g. {data: ...} before parameter filtering and then unwrap it before sending it to the logger.