Method: CouchDiff#attachments_changed
- Defined in:
- lib/couchdiff.rb
#attachments_changed(src_doc, dst_doc) ⇒ Object
determine if there are any added/deleted/modified attachments between src and dst
76 77 78 |
# File 'lib/couchdiff.rb', line 76 def src_doc, dst_doc (src_doc['_attachments'] || {}).diff(dst_doc['_attachments'] || {}, EXCLUDED_KEYS).length > 0 end |