app/models/taxon_concept_name.rb
# Our composite primary keys gem is too stupid to handle this change
# correctly, so we're bypassing it here:
Our composite primary keys gem is too stupid to handle this change
correctly, so we're bypassing it here.
Our composite primary keys gem is too stupid to handle this change correctly so we ' re bypassing it here .
def raw_update_attribute(key, val)
    raise "Invalid key" unless self.respond_to? key
    TaxonConceptName.connection.execute(EOL::Db.sanitize_array([%Q{
      UPDATE `#{self.class.table_name}`
      SET `#{key}` = ?
      WHERE name_id = ?
        AND taxon_concept_id = ?
        AND source_hierarchy_entry_id = ?
    }, val, self[:name_id], self[:taxon_concept_id], self[:source_hierarchy_entry_id]]))
  end
def raw_update_attribute ( key , val ) raise "Invalid key" unless self . respond_to? key TaxonConceptName . connection . execute ( EOL :: Db . sanitize_array ( [ %Q{
      UPDATE `#{self.class.table_name}`
      SET `#{key}` = ?
      WHERE name_id = ?
        AND taxon_concept_id = ?
        AND source_hierarchy_entry_id = ?
    } , val , self [ :name_id ] , self [ :taxon_concept_id ] , self [ :source_hierarchy_entry_id ] ] ) ) end
Our composite primary keys gem is too stupid to handle this change
correctly, so we're bypassing it here:
Our composite primary keys gem is too stupid to handle this change correctly so we ' re bypassing it here :
key
<not_specific>
val
<not_specific>