contentful / contentful_model

A lightweight wrapper around the Contentful api gem, to make it behave more like ActiveRecord
MIT License
44 stars 42 forks source link

Add load! method #138

Closed timfjord closed 4 years ago

timfjord commented 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

dlitvakb commented 4 years ago

Thanks for the contribution!

Will make a release shortly.

Cheers