Class: CouchVisible::ByShown
- Inherits:
-
Object
- Object
- CouchVisible::ByShown
- Includes:
- CouchView::Map
- Defined in:
- lib/couch_visible/maps/by_shown.rb
Instance Method Summary collapse
Instance Method Details
#map ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/couch_visible/maps/by_shown.rb', line 5 def map " function(doc){ if (#{conditions} && doc.couch_visible == true){ emit(doc['_id'], null); } } " end |