diff options
author | jessib <jessib@riseup.net> | 2013-11-29 13:40:57 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-11-29 13:40:57 -0800 |
commit | ddda87a96c6c95c1afc163aea3c0d52943ecd41c (patch) | |
tree | 65624a2237441a0cde1b7fa07447a308bc421350 /lib/tapicero | |
parent | 76b003ef7dcbeba19b3c592072cf537c0ae79221 (diff) | |
parent | 905307a871d6dfdce6d7120457bf653b8b6234a3 (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.rb | 2 |
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-') |