summaryrefslogtreecommitdiff
path: root/lib/tapicero
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-11-29 13:40:57 -0800
committerjessib <jessib@riseup.net>2013-11-29 13:40:57 -0800
commitddda87a96c6c95c1afc163aea3c0d52943ecd41c (patch)
tree65624a2237441a0cde1b7fa07447a308bc421350 /lib/tapicero
parent76b003ef7dcbeba19b3c592072cf537c0ae79221 (diff)
parent905307a871d6dfdce6d7120457bf653b8b6234a3 (diff)
Merge pull request #3 from azul/feature/ignore_design_doc_changes
ignore design document changes - do not trigger callbacks then
Diffstat (limited to 'lib/tapicero')
-rw-r--r--lib/tapicero/couch_changes.rb2
1 files changed, 2 insertions, 0 deletions
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-')