summaryrefslogtreecommitdiff
path: root/lib/tapicero/user_database.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tapicero/user_database.rb')
-rw-r--r--lib/tapicero/user_database.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/tapicero/user_database.rb b/lib/tapicero/user_database.rb
index d35af20..6daccf3 100644
--- a/lib/tapicero/user_database.rb
+++ b/lib/tapicero/user_database.rb
@@ -8,13 +8,6 @@ module Tapicero
@db = couch.database(config.options[:db_prefix] + user_id)
end
- def prepare
- create
- secure
- add_design_docs
- Tapicero.logger.info "Prepared storage " + db.name
- end
-
def create
retry_request_once "Creating database" do
create_db
@@ -53,6 +46,10 @@ module Tapicero
end
end
+ def name
+ db.name
+ end
+
protected
def create_db