Skip to content

Allowing to configure custom headers for Total and Per-Page #31

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

Merged
merged 1 commit into from
Jan 23, 2015
Merged

Allowing to configure custom headers for Total and Per-Page #31

merged 1 commit into from
Jan 23, 2015

Conversation

marlonandrade
Copy link
Contributor

  • not always we want to have the Total and Per-Page headers with that
    name, we may want to have a custom one like: X-Total-Count or
    X-Per-Page.
  • if nothing is configured it defaults to Total and Per-Page as the gem
    already did.

Merged with the other pull requests that caused conflicts.

# ...
```


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix up this extra line break?

@marlonandrade
Copy link
Contributor Author

@davidcelis thank you for your fast feedback and code review =)

@davidcelis
Copy link
Owner

Looking good now! Thanks! Could you squash the commits before I merge this PR in?

- not always we want to have the Total and Per-Page headers with that
  name, we may want to have a custom one like: X-Total-Count or
  X-Per-Page.
- if nothing is configured it defaults to Total and Per-Page as the gem
  already did.

Removing extra line break

Changing to :attr_writer, since we already define the readers

Aligning equal signs

Adjusting the expected Header on test name
davidcelis added a commit that referenced this pull request Jan 23, 2015
Allowing to configure custom headers for Total and Per-Page
@davidcelis davidcelis merged commit fd4addb into davidcelis:master Jan 23, 2015
@davidcelis
Copy link
Owner

Thanks again!! ✨

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.

2 participants