Skip to content

Add support for specifying custom :meta options.#37

Open
retmanski wants to merge 1 commit intoIcaliaLabs:masterfrom
retmanski:add_custom_meta_support
Open

Add support for specifying custom :meta options.#37
retmanski wants to merge 1 commit intoIcaliaLabs:masterfrom
retmanski:add_custom_meta_support

Conversation

@retmanski
Copy link
Copy Markdown

What does this PR do?

  • Currently the pagination implementation completely overwrites the response :meta options - I have a use case that requires adding additional options to the meta section but the gem doesn't support that. This change allows something like the following to work as expected:
paginate my_collection, meta: { foo: 'bar' }

...and will include the specified custom metadata in addition to the pagination metadata.

Currently the pagination implementation completely overwrites the response `:meta` options - I have a use case that requires adding additional options to the meta section but the gem doesn't support that. This change allows something like the following to work as expected:

```
paginate my_collection, meta: { foo: 'bar' }
```

And will include the specified custom metadata in addition to the pagination metadata.
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.

1 participant