Class: InternalAttribute
- Inherits:
-
DataAttribute
- Object
- ActiveRecord::Base
- ApplicationRecord
- DataAttribute
- InternalAttribute
- Defined in:
- app/models/internal_attribute.rb
Instance Attribute Summary collapse
-
#controlled_vocabulary_term_id ⇒ id
The the id of the ControlledVocabularyTerm::Predicate.
Attributes inherited from DataAttribute
#attribute_subject_id, #attribute_subject_type, #project_id, #type, #value
Attributes included from Shared::DualAnnotator
Method Summary
Methods inherited from DataAttribute
#editable?, find_for_autocomplete, #predicate_name
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Shared::DualAnnotator
Methods included from Shared::Citations
#cited?, #mark_citations_for_destruction, #nomenclature_date, #origin_citation_source_id, #reject_citations, #requires_citation?, #sources_by_topic_id
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Instance Attribute Details
#controlled_vocabulary_term_id ⇒ id
The the id of the ControlledVocabularyTerm::Predicate. Term is referenced as #predicate.
10 11 12 13 |
# File 'app/models/internal_attribute.rb', line 10 class InternalAttribute < DataAttribute validates_presence_of :predicate validates_uniqueness_of :value, scope: [:attribute_subject_id, :attribute_subject_type, :type, :controlled_vocabulary_term_id, :project_id] end |