def update!(attributes)
      assert_update_clean_only(:update!)

      model = self.model

      dirty_attributes = model.new(attributes).dirty_attributes

      if dirty_attributes.empty?
        true
      else
        dirty_attributes.each do |property, value|
          property.assert_valid_value(value)
        end
        unless _update(dirty_attributes)
          return false
        end

        if loaded?
          each do |resource|
            dirty_attributes.each { |property, value| property.set!(resource, value) }
            repository.identity_map(model)[resource.key] = resource
          end
        end

        true
      end
    end
def update!(attributes)
      assert_update_clean_only(:update!)

      model = self.model

      dirty_attributes = model.new(attributes).dirty_attributes

      if dirty_attributes.empty?
        true
      else
        dirty_attributes.each do |property, value|
          property.assert_valid_value(value)
        end
        unless _update(dirty_attributes)
          return false
        end

        if loaded?
          each do |resource|
            dirty_attributes.each { |property, value| property.set!(resource, value) }
            repository.identity_map(model)[resource.key] = resource
          end
        end

        true
      end
    end
Update every Resource in the Collection bypassing validation

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

 @param [Hash] attributes
   attributes to update

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

 @api public