Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test (integration) + Implement] 'infer' PORO collection #26

Merged
merged 3 commits into from
Jun 25, 2022

Conversation

Martouta
Copy link
Owner

Part of #11

'respond_with' for a successful 'GET' request of a collection.
The collection here must be a Ruby object that acts as a collection of DummyPoro and that responds to enumerable methods.
This is because a bare Array wouldn't respond to model_name which is necessary here for inferring the representer class.
When the representer_class is specified and not inferred, an Array still
will do.

@Martouta Martouta self-assigned this Jun 25, 2022
Part of #11

'respond_with' for a successful 'GET' request of a collection.
The collection here must be a Ruby object that acts as a collection of DummyPoro and that responds to enumerable methods.
This is because a bare Array wouldn't respond to model_name which is necessary here for inferring the representer class.
When the representer_class is specified and not inferred, an Array still
will do.
@Martouta Martouta force-pushed the test-integration-infer-poro-collection-secenario branch from bd9b9f0 to c9a92ed Compare June 25, 2022 17:25
@Martouta Martouta merged commit 81f1a44 into main Jun 25, 2022
@Martouta Martouta deleted the test-integration-infer-poro-collection-secenario branch June 25, 2022 17:36
@Martouta Martouta mentioned this pull request Jun 25, 2022
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant