# File lib/dm-redis-adapter/adapter.rb, line 74 def update(attributes, collection) attributes = attributes_as_fields(attributes) records_to_update = records_for(collection.query) records_to_update.each {|r| r.update(attributes)} update_attributes(collection) end