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

Ability to skip visibility-plugin hiding attributes #1699

Merged
merged 1 commit into from Nov 20, 2017

Conversation

@lorenzorapetti
Copy link
Contributor

@lorenzorapetti lorenzorapetti commented Nov 18, 2017

Ability to skip visibility-plugin hiding attributes

  • Related Issues: #951

Introduction

Introduces a new visibility attribute that you can pass to toJSON in order to ignore the hidden and visible attributes from the visibility-plugin.

Proposed solution

With user.toJSON({ visibility: false }) you can ignore the hidden and visible attributes.

Fixes #951.

Now with `user.toJSON({ visibility: false })` you can ignore the `hidden` and `visible` attributes
@mrhwick mrhwick merged commit 96a73ad into bookshelf:master Nov 20, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants