Added a search method to CouchRest:Database to search the documents in a
given database. Added support for a :search parameter to Collection's
paginated_each method, which will allow you to paginate over a set of
search results.
This code has been brought to you by Dave Farkas (sakrafd) and
Arnaud Berthomier (oz).
Fixes bug where documents recreated from the database were
being stripped of their protected attributes when instantiated
Signed-off-by: Marcos Tapajos <tapajos@Tapajos-MacBook.local>
The Collection mixin adds support for executing a view, and passing
back the view results as an Array of the given ExtendedDocument instance.
It also supports will_paginate like pagination methods (paginate, paginated_each),
which will only fetch the given set of documents from CouchDB.