summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-04-15 03:04:12 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-04-15 03:04:12 +0000
commitd1506067c656761dddcca04b000ac06547217b51 (patch)
tree6374dddeddab140ddcf2f5938abe9b949bb8f2b5 /share/www
parent2aea9fcaca0f04aed8c3cc0f9ca9e627f60afdae (diff)
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
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/futon.browse.js2
1 files changed, 1 insertions, 1 deletions
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() {