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

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#is_community_annotationObject

Returns the value of attribute is_community_annotation



12
13
14
# File 'app/models/concerns/shared/dual_annotator.rb', line 12

def is_community_annotation
  @is_community_annotation
end

Instance Method Details

#is_community_annotation?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/concerns/shared/dual_annotator.rb', line 14

def is_community_annotation?
  (is_community_annotation == true) || is_community_annotation.to_s == 'true'
end