Class | CouchPotato::View::PropertiesViewSpec |
In: |
lib/couch_potato/view/properties_view_spec.rb
|
Parent: | ModelViewSpec |
A view to return model instances with only some properties poulated by searching its properties, e.g. for very large documents where you are only interested in some of their data
example:
view :my_view, :key => :name, :properties => [:name, :author], :type => :properties