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

- (Object) is_community_annotation

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

- (Boolean) is_community_annotation?

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