Closed timfjord closed 4 years ago
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
load!
ContentfulModel::NotFoundError
nil
Thanks for the contribution!
Will make a release shortly.
Cheers
This PR adds
load!
method that raises an exception(ContentfulModel::NotFoundError
) when a response is blank(eithernil
or an empty array) It mirrors Rails bang/non-bang approach