This commit is contained in:
Chris Anderson 2008-10-15 23:26:43 -07:00
parent 23aafc1d50
commit ebfda803c8

View file

@ -311,7 +311,7 @@ module CouchRest
end
end
# returns true if the there is a view named this in the design doc
# returns stored defaults if the there is a view named this in the design doc
def has_view?(view)
view = view.to_s
if generated_design_doc['views'][view]