diff options
author | Azul <azul@riseup.net> | 2014-02-04 15:01:27 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-02-04 15:01:27 +0100 |
commit | 5cd3df1a9be8e7db2f3e364fd730ed78c8d0e49f (patch) | |
tree | 1bdb67cf7e501655e8503fbb4fc0e81a7df3d96f /lib/tapicero/user_database.rb | |
parent | ecf7188143d09c091f89b1970269e04fc7cba4e8 (diff) |
refactor: moved prepare and destroy into user_event_handler
Diffstat (limited to 'lib/tapicero/user_database.rb')
-rw-r--r-- | lib/tapicero/user_database.rb | 11 |
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 |