Useless funcs variable in design_doc_slug
Reported by Julien Sanchez | September 18th, 2009 @ 03:24 AM
design_doc_slug in design_doc.rb
Was previously used for MD5 digest of views
From 13ccd18603a32c1801ccedd23e85e2e745717c4a Mon Sep 17 00:00:00 2001
From: Julien Sanchez <julien.sanchez@lim.eu>
Date: Fri, 18 Sep 2009 12:03:35 +0200
Subject: [PATCH] Useless funcs variable in design_doc_slug
Was previously used for MD5 digest of views
---
lib/couchrest/mixins/design_doc.rb | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/lib/couchrest/mixins/design_doc.rb b/lib/couchrest/mixins/design_doc.rb
index 35729a7..eae4351 100644
--- a/lib/couchrest/mixins/design_doc.rb
+++ b/lib/couchrest/mixins/design_doc.rb
@@ -21,10 +21,6 @@ module CouchRest
def design_doc_slug
return design_doc_slug_cache if (design_doc_slug_cache && design_doc_fresh)
- funcs = []
- design_doc['views'].each do |name, view|
- funcs << "#{name}/#{view['map']}#{view['reduce']}"
- end
self.design_doc_slug_cache = self.to_s
end
@@ -100,4 +96,4 @@ module CouchRest
end
end
-end
\ No newline at end of file
+end
--
1.6.4
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
"CouchDB, close to the metal." <a href="http://github.com/jchris/couchrest/tree/master">CouchRest</a> is a RESTful layer for accessing CouchDB, based off CouchDB's included Javascript reference client. CouchRest also includes helpers for running large queries etc. There is also a base class for ActiveRecord / Datamapper style ORM, called CouchRest::Model.