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

Add support for specifying custom :meta options #38

Open
smoothcontract opened this issue Jun 1, 2020 · 0 comments
Open

Add support for specifying custom :meta options #38

smoothcontract opened this issue Jun 1, 2020 · 0 comments

Comments

@smoothcontract
Copy link

I'm currently using this with a project and it's working well for including pagination metadata in a JSONAPI using AMS and Kaminari. However I want to extend the returned metadata to include additional values other than the existing pagination keys; currently that's not possible as the entire meta: options passed to render method are overwritten.

I've opened a PR that suggests an approach - essentially this just merges rather than overwrites any existing meta: options. Let me know what you think 😁

#37

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

No branches or pull requests

1 participant