From 905307a871d6dfdce6d7120457bf653b8b6234a3 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 27 Nov 2013 10:21:37 +0100 Subject: ignore design document changes - do not trigger callbacks then tapicero should create per user databases when a user is created and destroy them when that user is destroyed. However it should not attempt the same if design docs are created or destroyed. --- lib/tapicero/couch_changes.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/tapicero') diff --git a/lib/tapicero/couch_changes.rb b/lib/tapicero/couch_changes.rb index b45d54a..aa21676 100644 --- a/lib/tapicero/couch_changes.rb +++ b/lib/tapicero/couch_changes.rb @@ -45,6 +45,8 @@ module Tapicero def callbacks(hash) #changed callback + # let's not track design document changes + return if hash['id'].start_with? '_design/' return unless changes = hash["changes"] return deleted(hash) if hash["deleted"] created(hash) if changes[0]["rev"].start_with?('1-') -- cgit v1.2.3