Class: Keyword

Inherits:
ControlledVocabularyTerm show all
Defined in:
app/models/keyword.rb

Direct Known Subclasses

BiocurationGroup

Constant Summary

Constant Summary

Constants inherited from ControlledVocabularyTerm

ControlledVocabularyTerm::ALTERNATE_VALUES_FOR

Instance Attribute Summary

Attributes inherited from ControlledVocabularyTerm

#definition, #name, #project_id, #type, #uri, #uri_relation

Instance Method Summary (collapse)

Methods inherited from ControlledVocabularyTerm

find_for_autocomplete, generate_download, #uri_relation_is_a_skos_relation

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Method Details

- (Object) tagged_object_class_names



9
10
11
# File 'app/models/keyword.rb', line 9

def tagged_object_class_names
  tags.pluck(:tag_object_type)
end

- (Object) tagged_objects



5
6
7
# File 'app/models/keyword.rb', line 5

def tagged_objects
  tags.collect{|t| t.tag_object}
end