summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-12-20 12:58:53 +0100
committerAzul <azul@riseup.net>2013-12-20 12:58:53 +0100
commitd8c28a0c3cba76fadd0495a79f67efd61458218c (patch)
treec27c399511c17f6accaad20d906d1ea809857920 /lib
parentf47712d803811f06b4371f50fabdfc1fefffe4cc (diff)
add design docs to be included in each user database
Also strip the .json extention because soledad does not expect it
Diffstat (limited to 'lib')
-rw-r--r--lib/tapicero/user_database.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tapicero/user_database.rb b/lib/tapicero/user_database.rb
index b08558f..dc28aa9 100644
--- a/lib/tapicero/user_database.rb
+++ b/lib/tapicero/user_database.rb
@@ -32,7 +32,7 @@ module Tapicero
end
def upload_design_doc(file)
- url = design_url(file.basename)
+ url = design_url(file.basename('.json'))
Tapicero.logger.debug "uploading design doc #{file.basename} to #{url}"
CouchRest.put url, JSON.parse(file.read)
end