Module: Shared::AlternateValues

Extended by:
ActiveSupport::Concern
Included in:
ControlledVocabularyTerm, Otu, Serial, Source
Defined in:
app/models/concerns/shared/alternate_values.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#has_alternate_values?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/models/concerns/shared/alternate_values.rb', line 8

def has_alternate_values?
  self.alternate_values.count > 0
end