From d1506067c656761dddcca04b000ac06547217b51 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 15 Apr 2010 03:04:12 +0000 Subject: ruby example function works with @mattly`s query server git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@934272 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.browse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 924372cf..7bac338a 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -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() { -- cgit v1.2.3