Module: Shared::IsData::Annotation::ClassMethods

Defined in:
app/models/concerns/shared/is_data/annotation.rb

Overview

see config/initializes/constanst/model/annotations for types

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) annotates?

true if model is an “annotator” (e.g. identifiers, tags, notes, data attributes, alternate values, citations), i.e. data that references another data element through STI

Returns:

  • (Boolean)


15
16
17
# File 'app/models/concerns/shared/is_data/annotation.rb', line 15

def annotates?
  respond_to?(:annotated_object)
end