You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for not testing this myself sooner, but I think we have a bug left over from #220, where transform_keys only cascades for one level.
To Reproduce
Given the following code sample, note that the articles array has the createdAt key, but the comments array has the created_at key, which has not been transformed:
@trevorturk#263 was a solution, but it was hard to debug. I described the problem and solution in the PR description so please check it if you're interested.
In short, there's an implicit requirement that transform_keys should be called before attributes. This might not be a problem for daily development, but in this case it's a trick issue.
Ack! Sorry the fix was so difficult, but I did test your PR/branch in my app and everything works as expected! Thank you so much! I have a lot of nested attributes, so this removes a lot of repeated transform_keys keys calls and my resources look much skinnier now :)
Describe the bug
Apologies for not testing this myself sooner, but I think we have a bug left over from #220, where
transform_keys
only cascades for one level.To Reproduce
Given the following code sample, note that the
articles
array has thecreatedAt
key, but thecomments
array has thecreated_at
key, which has not been transformed:The text was updated successfully, but these errors were encountered: