app/models/type2.rb
# Updates the associated record with values matching those of the instance attributes.
# Returns the number of affected rows.
Updates the associated record with values matching those of the instance attributes.
Returns the number of affected rows.
Updates the associated record with values matching those of the instance attributes . Returns the number of affected rows .
def _update_record(attribute_names = self.attribute_names)
      attributes_values = arel_attributes_with_values_for_update(attribute_names)
      if attributes_values.empty?
        0
      else
        if self.is_a? Type2
          self.class.unscoped._update_record attributes_values, [id, dfrom_was], id_was
        else
          self.class.unscoped._update_record attributes_values, id, id_was
        end
      end
    end
def _update_record ( attribute_names = self . attribute_names ) attributes_values = arel_attributes_with_values_for_update ( attribute_names ) if attributes_values . empty? 0 else if self . is_a? Type2 self . class . unscoped . _update_record attributes_values , [ id , dfrom_was ] , id_was else self . class . unscoped . _update_record attributes_values , id , id_was end end end
Updates the associated record with values matching those of the instance attributes.
Updates the associated record with values matching those of the instance attributes .
attribute_names
<not_specific>