Class: ObservationMatrixRowItem::Dynamic::Tag
- Inherits:
-
ObservationMatrixRowItem::Dynamic
- Object
- ActiveRecord::Base
- ApplicationRecord
- ObservationMatrixRowItem
- ObservationMatrixRowItem::Dynamic
- ObservationMatrixRowItem::Dynamic::Tag
- Defined in:
- app/models/observation_matrix_row_item/dynamic/tag.rb
Constant Summary
Constants inherited from ObservationMatrixRowItem
Instance Attribute Summary
Attributes inherited from ObservationMatrixRowItem
#collection_object_id, #observation_matrix_id, #otu_id, #position
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ObservationMatrixRowItem::Dynamic
Methods inherited from ObservationMatrixRowItem
batch_create, batch_create_from_pinboard, batch_create_from_tags, #cleanup_matrix_rows, #cleanup_single_matrix_row, create_for, create_for_pinboard_items, create_for_tags, #decrement_matrix_row_reference_count, #find_or_build_row, human_name, #increment_matrix_row_reference_count, #object_is?, #other_subclass_attributes_not_set, #row_objects, #update_matrix_rows, #update_single_matrix_row
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Shared::Notes
#concatenated_notes_string, #reject_notes
Methods included from Shared::Tags
#reject_tags, #tag_with, #tagged?, #tagged_with?
Methods included from Shared::Identifiers
#identified?, #next_by_identifier, #previous_by_identifier, #reject_identifiers
Methods included from Shared::Citations
#cited?, #mark_citations_for_destruction, #nomenclature_date, #origin_citation_source_id, #reject_citations, #requires_citation?, #sources_by_topic_id
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Class Method Details
.subclass_attributes ⇒ Object
8 9 10 |
# File 'app/models/observation_matrix_row_item/dynamic/tag.rb', line 8 def self.subclass_attributes [:controlled_vocabulary_term_id] end |
Instance Method Details
#collection_objects ⇒ Object
16 17 18 |
# File 'app/models/observation_matrix_row_item/dynamic/tag.rb', line 16 def collection_objects CollectionObject.joins(:tags).where(tags: {keyword: controlled_vocabulary_term}) end |
#matrix_row_item_object ⇒ Object
20 21 22 |
# File 'app/models/observation_matrix_row_item/dynamic/tag.rb', line 20 def matrix_row_item_object controlled_vocabulary_term end |
#otus ⇒ Object
12 13 14 |
# File 'app/models/observation_matrix_row_item/dynamic/tag.rb', line 12 def otus Otu.joins(:tags).where(tags: {keyword: controlled_vocabulary_term}) end |