Skip to content

Associations are broken / don't work as per documentation #358

@krzypio-jv

Description

@krzypio-jv

Hey

When I tried getting a company and its deals through API call like this:
image
It works, the docs return a response with deals collection in the company object as expected.

When copying the cURL and running it locally - it works, they are returned.

However, copying THE EXACT SAME ruby code and pasting this in the console returns the company without the deals associated.

Both the docs and the gem seem to be using v3, and I would expect that the docs actually execute real code? Or is it just mocked and the docs assume that the code they show works?

I stepped through the gem code and the associations are in the request correctly, but they are nowhere to be seen in the response? How come? Why is the code in the docs working, but the actual gem is clearly broken when executing the same code as per documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions