def update(attributes)
      assert_update_clean_only(:update)

      dirty_attributes = model.new(attributes).dirty_attributes
      dirty_attributes.empty? || all? { |resource| resource.update(attributes) }
    end
def update(attributes)
      assert_update_clean_only(:update)

      dirty_attributes = model.new(attributes).dirty_attributes
      dirty_attributes.empty? || all? { |resource| resource.update(attributes) }
    end
Update every Resource in the Collection

   Person.all(:age.gte => 21).update(:allow_beer => true)

 @param [Hash] attributes
   attributes to update with

 @return [Boolean]
   true if the resources were successfully updated

 @api public