Module: Shared::DualAnnotator

Extended by:
ActiveSupport::Concern
Included in:
AlternateValue, DataAttribute, Identifier
Defined in:
app/models/concerns/shared/dual_annotator.rb

Overview

Concern for models that annotate BOTH project and community data.

The purpose of this module is to force the annotations on Community data to become community shared. No other functionality should be included.

To enumerate in IRB: ObjectSpace.each_object(Class).select { |c| c.ancestors.include?(Shared::DualAnnotator) }

Identifier (all), AlternateValue, DataAttribute (InternalAttribute, ImportAttribute) are always project

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

ALWAYS_COMMUNITY =

All annotations types on these objects are always COMMUNITY

[ 'GeographicArea', 'Person', 'Serial', 'Source', 'Organization', 'Repository'].freeze