# File lib/couchdb_adapter/attachments.rb, line 106 def assert_attachments_property property = model.properties[:attachments] unless property && property.type == DataMapper::Types::JsonObject && property.field == '_attachments' raise ArgumentError, "Attachments require property :attachments, JsonObject, :field => '_attachments'" end end