You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/04/15 05:04:13 UTC

svn commit: r934272 - /couchdb/trunk/share/www/script/futon.browse.js

Author: jchris
Date: Thu Apr 15 03:04:12 2010
New Revision: 934272

URL: http://svn.apache.org/viewvc?rev=934272&view=rev
Log:
ruby example function works with @mattly`s query server

Modified:
    couchdb/trunk/share/www/script/futon.browse.js

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=934272&r1=934271&r2=934272&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Thu Apr 15 03:04:12 2010
@@ -133,7 +133,7 @@
       var templates = {
         javascript: "function(doc) {\n  emit(null, doc);\n}",
         python: "def fun(doc):\n  yield None, doc",
-        ruby: "{|doc|\n  emit(nil, doc);\n}"
+        ruby: "lambda {|doc|\n  emit(nil, doc);\n}"
       }
 
       this.newDocument = function() {