Method: CouchView::Map#conditions

Defined in:
lib/couch_view/map.rb

#conditionsObject



27
28
29
30
31
32
33
# File 'lib/couch_view/map.rb', line 27

def conditions
  if @model
    "doc['couchrest-type'] == '#{@model}'" 
  else
    "true"
  end
end