lotus/model — pull request #59 by graysonwright (2014-09-14 01:38:27+00:00)
Title: Raise an error when Repository methods are called without an adapter

When the developer forgets to set a repository adapter, we should remind them with a helpful error message. As of 0.10.2, not setting an adapter and calling `UserRepository.all` gives this error:

```
NoMethodError: undefined method `all' for nil:NilClass
```

I think it would be a bit more informative to have something like:

```
Lotus::Repository::NoAdapterError: UserRepository has no persistence adapter. See http://rdoc.info/gems/lotus-model
```

Let me know if you'd prefer a different API for ensuring that developers set the adapter.