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 load! method #138

Merged
merged 1 commit into from
Jan 2, 2020
Merged

Add load! method #138

merged 1 commit into from
Jan 2, 2020

Conversation

timfjord
Copy link
Contributor

This PR adds load! method that raises an exception(ContentfulModel::NotFoundError) when a response is blank(either nil or an empty array)
It mirrors Rails bang/non-bang approach

@dlitvakb
Copy link
Contributor

dlitvakb commented Jan 2, 2020

Thanks for the contribution!

Will make a release shortly.

Cheers

@dlitvakb dlitvakb merged commit 9c9db81 into contentful:master Jan 2, 2020
@fsubal fsubal mentioned this pull request Jan 11, 2020
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