def update_all(attributes={})
      # Update using an attribute hash, or you can pass a block
      # and update the attributes directly on the objects.
      if block_given?
        to_a.each { |record| yield record }
      else
        to_a.each { |record| record.attributes = attributes }
      end
      zobject_class.update(to_a)
    end
def update_all(attributes={})
      # Update using an attribute hash, or you can pass a block
      # and update the attributes directly on the objects.
      if block_given?
        to_a.each { |record| yield record }
      else
        to_a.each { |record| record.attributes = attributes }
      end
      zobject_class.update(to_a)
    end
Updating / Deleting