Class: CouchVisible::ByShown

Inherits:
Object
  • Object
show all
Includes:
CouchView::Map
Defined in:
lib/couch_visible/maps/by_shown.rb

Instance Method Summary collapse

Instance Method Details

#mapObject



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