app/models/data_object.rb
# TODO - this seems odd to me. We essentially have two tables storing the same relationship, but one with extra info?
this seems odd to me.
this seems odd to me .
def build_relationship_to_taxon_concept_by_user(taxon_concept, user)
    DataObjectsTaxonConcept.find_or_create_by_taxon_concept_id_and_data_object_id(taxon_concept.id, self.id)
    UsersDataObject.create(user: user, data_object: self,
                           taxon_concept: taxon_concept, visibility: Visibility.get_visible)
  end
def build_relationship_to_taxon_concept_by_user ( taxon_concept , user ) DataObjectsTaxonConcept . find_or_create_by_taxon_concept_id_and_data_object_id ( taxon_concept . id , self . id ) UsersDataObject . create ( user : user , data_object : self , taxon_concept : taxon_concept , visibility : Visibility . get_visible ) end
TODO - this seems odd to me.
TODO - this seems odd to me .
taxon_concept
<not_specific>
user
<not_specific>