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

Introduce override option for expose #297

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Introduce override option for expose #297

merged 1 commit into from
Jan 29, 2018

Conversation

DmitryTsepelev
Copy link
Contributor

Per discussion here #296. Please note that I've removed all other conditions, so even conditional or nesting exposure can be overwritten (should I throw an error or something when people configure their exposures in strange ways?)

@@ -477,11 +477,20 @@ class Parent < Person
expect(child_class.represent({ name: 'bar' }, serializable: true)).to eq(email: nil, name: 'foo')
end

it 'overrides parent class exposure' do
it 'not overrides exposure by default' do
Copy link
Member

Choose a reason for hiding this comment

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

did we have an example which overrides the exposure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ok … thanks for clearing

@ruby-grape ruby-grape deleted a comment from coveralls Jan 29, 2018
@ruby-grape ruby-grape deleted a comment from coveralls Jan 29, 2018
@ruby-grape ruby-grape deleted a comment from coveralls Jan 29, 2018
@ruby-grape ruby-grape deleted a comment from coveralls Jan 29, 2018
@LeFnord
Copy link
Member

LeFnord commented Jan 29, 2018

Thanks for you work @DmitryTsepelev

@LeFnord LeFnord merged commit 391bff6 into ruby-grape:master Jan 29, 2018
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