Module | CouchRest::Mixins::DocumentQueries::ClassMethods |
In: |
lib/couchrest/mixins/document_queries.rb
|
Load all documents that have the "couchrest-type" field equal to the name of the current class. Take the standard set of CouchRest::Database#view options.
Load the first document that have the "couchrest-type" field equal to the name of the current class.
Object: | The first object instance available |
or
Nil: | if no instances available |
opts<Hash>:: View options, see CouchRest::Database#view options for more info.