Top Level Namespace

Includes:
LogicTools

Defined Under Namespace

Modules: AlternateValuesHelper, AnnotationsHelper, Api, ApiHelper, ApplicationEnumeration, ApplicationHelper, AssertedDistributionsHelper, AttributionsHelper, BatchFileLoad, BatchLoad, BiocurationClassificationsHelper, BiologicalAssociationsGraphsHelper, BiologicalAssociationsHelper, BiologicalRelationshipsHelper, CachedMapsHelper, CharacterStatesHelper, CitationTopicsHelper, CitationsHelper, CollectingEventsHelper, CollectionObjectObservationsHelper, CollectionObjectsHelper, CollectionProfilesHelper, CombinationsHelper, CommonNamesHelper, ConfidencesHelper, ContainerItemsHelper, ContainersHelper, ContentsHelper, ControlledVocabularyTermsHelper, ControllerTypes, Cookies, DataAttributesHelper, DataControllerConfiguration, DatasetRecordsHelper, DepictionsHelper, DescriptorsHelper, DocumentationHelper, DocumentsHelper, DownloadsHelper, DwcOccurrencesHelper, Export, ExtractsHelper, FieldOccurrencesHelper, ForgeryProtection, Forms, GeneAttributesHelper, GeographicAreaTypesHelper, GeographicAreasGeographicItemsHelper, GeographicAreasHelper, GeographicItemsHelper, GeoreferencesHelper, GraphHelper, Housekeeping, HubHelper, IdentifiersHelper, ImagesHelper, ImportAttributesHelper, ImportDatasetsHelper, InternalAttributesHelper, LabelsHelper, LanguagesHelper, LeadsHelper, LoanItemsHelper, LoanRecipientsHelper, LoansHelper, LogRecent, LoggedTask, MatchGeoreferencesHelper, Material, NamespacesHelper, Nexml, NomenclatureCatalog, NotesHelper, ObservationMatricesHelper, ObservationMatrixColumnItemsHelper, ObservationMatrixColumnsHelper, ObservationMatrixRowItemsHelper, ObservationMatrixRowsHelper, ObservationsHelper, OrganizationsHelper, OriginRelationshipsHelper, OtuPageLayoutSectionsHelper, OtuPageLayoutsHelper, OtuRelationshipsHelper, OtusHelper, PageMeta, PaginationHeaders, Paperclip, PeopleHelper, PinboardItemsHelper, PreparationTypesHelper, Press, ProjectMembersHelper, ProjectSourcesHelper, ProjectsHelper, ProtocolRelationshipsHelper, ProtocolsHelper, PublicContentsHelper, Queries, RangedLotCategoriesHelper, Ranks, RedirectHelper, RepositoriesHelper, RequestType, RescueFrom, RestHelper, RolesHelper, SequenceRelationshipsHelper, SequencesHelper, SerialChronologiesHelper, SerialsHelper, SetExceptionNotificationData, SetHousekeeping, Settings, ShallowPolymorphic, Shared, SledImagesHelper, SoftValidation, SourcesHelper, SqedDepictionsHelper, Support, TagsHelper, TaskControllerConfiguration, TaxonDeterminationsHelper, TaxonNameClassificationsHelper, TaxonNameRelationshipsHelper, TaxonNames, TaxonNamesHelper, TaxonWorks, Taxonworks, TaxonworksNet, TokenAuthentication, TopicsHelper, TypeMaterialsHelper, UserTasks, UsersHelper, Utilities, ValidatorsHelper, Vendor, Vocabulary, Whitelist, Work Classes: AccessionProvider, AdministrationController, AlternateValue, AlternateValuesController, AnnotationsController, ApiController, ApplicationController, ApplicationJob, ApplicationRecord, AssertedDistribution, AssertedDistributionsController, Attribution, AttributionCopyrightHolder, AttributionCreator, AttributionEditor, AttributionOwner, AttributionsController, AuthorsController, BasicNomenclatureCreateDownloadJob, BatchResponse, BibtexCreateDownloadJob, BiocurationClass, BiocurationClassification, BiocurationClassificationsController, BiocurationGroup, BiologicalAssociation, BiologicalAssociationsBiologicalAssociationsGraph, BiologicalAssociationsController, BiologicalAssociationsGraph, BiologicalAssociationsGraphsController, BiologicalProperty, BiologicalRelationship, BiologicalRelationshipType, BiologicalRelationshipsController, CachedMap, CachedMapItem, CachedMapItemTranslation, CachedMapRegister, CachedMapsController, Catalog, CharacterState, CharacterStatesController, Citation, CitationTopic, CitationTopicsController, CitationsController, ColdpCreateDownloadJob, CollectingEvent, CollectingEventsController, CollectionObject, CollectionObjectObservation, CollectionObjectObservationsController, CollectionObjectsController, CollectionProfile, CollectionProfilesController, Collector, Combination, CombinationsController, CommonName, CommonNamesController, Confidence, ConfidenceLevel, ConfidenceLevelsController, ConfidencesController, Container, ContainerItem, ContainerItemsController, ContainersController, Content, ContentsController, ControlledVocabularyTerm, ControlledVocabularyTermsController, CrashTestController, Current, DashboardController, DataAttribute, DataAttributesController, DatasetRecord, DatasetRecordField, DatasetRecordsController, DateDayValidator, DateMonthValidator, DateTimeValidator, DateYearValidator, DeaccessionRecipient, Depiction, DepictionsController, DerivedCollectionObject, Descriptor, DescriptorsController, Determiner, Distribution, Document, Documentation, DocumentationController, DocumentsController, Download, DownloadProjectSqlJob, DownloadProjectTsvJob, DownloadsController, DwcOccurrence, DwcOccurrenceUpsertJob, DwcOccurrencesController, DwcaCreateDownloadJob, DwcaCreateIndexJob, DynamicContent, Extract, Extractor, ExtractsController, FieldOccurrence, FieldOccurrencesController, GeneAttribute, GeneAttributesController, GeographicArea, GeographicAreaType, GeographicAreaTypesController, GeographicAreasController, GeographicAreasGeographicItem, GeographicAreasGeographicItemsController, GeographicItem, GeographicItemsController, Georeference, Georeferencer, GeoreferencesController, GraphController, HubController, Hybrid, Identifier, IdentifiersController, Image, ImagesController, Import, ImportAttribute, ImportDataset, ImportDatasetImportJob, ImportDatasetStageJob, ImportDatasetsController, InternalAttribute, Keyword, KeywordsController, Label, LabelsController, Language, LanguagesController, Lead, LeadsController, Loan, LoanItem, LoanItemsController, LoanRecipient, LoanSupervisor, LoansController, Lot, MetadataController, Namespace, NamespacesController, NomenclaturalRank, Note, NotesController, Observation, ObservationMatricesController, ObservationMatrix, ObservationMatrixColumn, ObservationMatrixColumnItem, ObservationMatrixColumnItemsController, ObservationMatrixColumnsController, ObservationMatrixRow, ObservationMatrixRowItem, ObservationMatrixRowItemsController, ObservationMatrixRowsController, ObservationsController, Organization, OrganizationsController, OriginRelationship, OriginRelationshipsController, Otu, OtuPageLayout, OtuPageLayoutSection, OtuPageLayoutSectionsController, OtuPageLayoutsController, OtuRelationship, OtuRelationshipsController, OtusController, PapertrailController, PeopleController, Person, PinboardItem, PinboardItemsController, Predicate, PredicatesController, PreparationType, PreparationTypesController, Project, ProjectMember, ProjectMembersController, ProjectSource, ProjectSourcesController, ProjectsController, Protocol, ProtocolRelationship, ProtocolRelationshipsController, ProtocolsController, Protonym, PublicContent, PublicContentsController, QueryBatchRequest, RangedLot, RangedLotCategoriesController, RangedLotCategory, RepositoriesController, Repository, Role, RolesController, Sequence, SequenceRelationship, SequenceRelationshipsController, SequencesController, Serial, SerialChronologiesController, SerialChronology, SerialsController, SessionsController, SledImage, SledImagesController, SoftValidationsController, Source, SourceAuthor, SourceEditor, SourceSource, SourcesController, Specimen, SqedDepiction, SqedDepictionsController, Tag, TaggedSectionKeyword, TaggedSectionKeywordsController, TagsController, TaxonDetermination, TaxonDeterminationsController, TaxonName, TaxonNameAuthor, TaxonNameClassification, TaxonNameClassificationsController, TaxonNameRelationship, TaxonNameRelationshipsController, TaxonNamesController, TimeHourValidator, TimeMinuteValidator, TimeSecondValidator, Topic, TopicsController, TypeMaterial, TypeMaterialsController, User, UserMailer, UserPreferencesController, UsersController, Verifier

Instance Method Summary collapse

Instance Method Details

#biological_association_object_type_is_allowedObject (private)



204
205
206
# File 'app/models/biological_association.rb', line 204

def biological_association_object_type_is_allowed
  errors.add(:biological_association_object_type, 'is not permitted') unless biological_association_object && biological_association_object.class.is_biologically_relatable?
end

#biological_association_subject_type_is_allowedObject (private)



200
201
202
# File 'app/models/biological_association.rb', line 200

def biological_association_subject_type_is_allowed
  errors.add(:biological_association_subject_type, 'is not permitted') unless biological_association_subject && biological_association_subject.class.is_biologically_relatable?
end