# File lib/dm-core/adapters/yaml_adapter.rb, line 26 def update(attributes, collection) attributes = attributes_as_fields(attributes) update_records(collection.model) do |records| records_to_update = collection.query.filter_records(records.dup) records_to_update.each { |resource| resource.update(attributes) }.size end end