Class: ObservationMatrixColumnItem::TaggedDescriptor

Inherits:
ObservationMatrixColumnItem show all
Defined in:
app/models/observation_matrix_column_item/tagged_descriptor.rb

Overview

Adds columns to matrix for descriptors tagged with the provide Keyword (ControlledVocabularyTerm)

Constant Summary

Constant Summary

Constants inherited from ObservationMatrixColumnItem

ALL_STI_ATTRIBUTES

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ObservationMatrixColumnItem

#cleanup_matrix_columns, #cleanup_single_matrix_column, human_name, #other_subclass_attributes_not_set, #type_is_subclassed, #update_matrix_columns, #update_single_matrix_column

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

+ (Object) subclass_attributes



10
11
12
# File 'app/models/observation_matrix_column_item/tagged_descriptor.rb', line 10

def self.subclass_attributes
  [:controlled_vocabulary_term_id]
end

Instance Method Details

- (Object) descriptors



14
15
16
# File 'app/models/observation_matrix_column_item/tagged_descriptor.rb', line 14

def descriptors
  Tag.where(keyword: controlled_vocabulary_term, tag_object_type: 'Descriptor').map(&:tag_object)
end