Module: Hirb::Views::CouchDb

Defined in:
lib/hirb/views/couch_db.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#default_couch(obj) ⇒ Object Also known as: couch_rest__extended_document_view, couch_foo__base_view, couch_potato__persistence_view



2
3
4
# File 'lib/hirb/views/couch_db.rb', line 2

def default_couch(obj)
  {:fields=>([:_id] + obj.class.properties.map {|e| e.name }) }
end