Top Level Namespace
Defined Under Namespace
Modules: AASM, Accession, Accessionable, ActsAsDescriptable, Api, ApiTools, ApplicationHelper, ArrayWithFieldList, AssetsHelper, Attributable, AuthenticatedSystem, AuthenticatedTestHelper, BarcodePrintersHelper, BatchesHelper, BootstrapHelper, BulkSubmissionExcel, CapybaraFailureLogger, CapybaraTimeoutPatch, CarrierWave, Cherrypick, Commentable, CommentsProxy, CompoundSampleHelper, ControlRequestTypeCreation, ControllerHelper, Core, CronScripts, CsvParserClient, DataRelease, DelayedJobsHelper, DelegateValidation, Deployed, DescriptorJavascriptHelper, Dev, Endpoints, EventfulRecord, FieldInfosHelper, FlashTruncation, FontawesomeHelper, HasBehaviour, Heron, Informatics, Insdc, Io, LabWhereClient, LabelPrinter, LinefeedFix, ManifestUtil, Metadata, MethodBenchmarking, NestedValidation, Parsers, PhiX, PipelinesHelper, PlatePicks, PlatesHelper, Presenters, ProductHelpers, PrototypeReplacementHelper, RecordLoader, ReportFailsHelper, RequestClassDeprecator, RequestTypePurposeCreation, RequestTypesHelper, RequestsHelper, RetentionInstructionHelper, SampleManifestExcel, SamplesHelper, SearchBehaviour, SequencescapeExcel, SequencingQcBatch, SharedBehaviour, SingleReceptacleLabware, Squishify, StandardNamedScopes, StateChanger, StudiesHelper, SubmissionSerializer, SubmissionsHelper, Swipecardable, TagSubstitutionHelper, Tasks, UiHelper, UsersHelper, Validateable, ValidationStateGuard, ViewsSchema, VolumeCheck, WorkflowsHelper, WorkingSetup Classes: Ability, AbilityAnalysis, AccessionService, AddSpikedInControlTask, AdminController, AdvancedSearchController, Aliquot, AliquotIndex, AliquotIndexer, ApiApplication, ApiV2Generator, ApplicationController, ApplicationRecord, Asset, AssetAudit, AssetAuditsController, AssetBarcode, AssetCreation, AssetGroup, AssetGroupAsset, AssetLink, AssetShape, AssetsController, AssignTagsTask, AssignTagsToTubesTask, AssignTubesToMultiplexedWellsTask, AutomatedOrder, BaitLibrary, BaitLibraryLayout, BaitLibraryType, Barcode, BarcodePrefix, BarcodePrinter, BarcodePrinterType, BarcodePrinterType1DTube, BarcodePrinterType384DoublePlate, BarcodePrinterType384Plate, BarcodePrinterType96Plate, BarcodePrintersController, BaseLoginProxy, Batch, BatchCreationValidator, BatchRequest, BatchesController, BindingKitBarcodeTask, BroadcastEvent, BudgetDivision, BulkSubmission, BulkSubmissionsController, BulkTransfer, CherrypickForFluidigmRequest, CherrypickForPulldownPipeline, CherrypickForPulldownRequest, CherrypickPipeline, CherrypickRequest, CherrypickTask, CherrypickingPipeline, Comment, CompoundAliquot, Control, ControlPlate, ControlRequest, CreateAssetRequest, CustomMetadatum, CustomMetadatumCollection, CustomText, CustomerRequest, DataReleaseStudyType, DbFile, DeploymentEnvironment, Descriptor, DilutionPlate, DilutionPlatePurpose, Document, DocumentsController, DriverFilesController, EgaAccessionService, EnaAccessionService, Equipment, Event, EventFactory, EventSender, EventfulMailer, EventsController, ExportPoolXpToTractionJob, ExtendedValidator, ExternalLibraryCreationRequest, ExternalProperty, ExternalReleaseEvent, ExtractionAttribute, FacultySponsor, Failure, FieldInfo, FlexibleCherrypickPipeline, FlexibleSubmission, FlowcellType, FlowcellTypesRequestType, FluidigmFile, FluidigmTemplateTask, Fragment, GelDilutionPlate, GelsController, GenerateCreateAssetRequestsJob, GenotypingPipeline, GenotypingRequest, GetYourQcCompletedTubesHereController, Health, HealthController, HiSeqSequencingRequest, HomesController, HttpLoginProxy, Identifier, IllegalOperation, Implement, Item, LabEvent, LabSearchesController, Labware, LabwareController, LabwhereReception, LabwhereReceptionsController, Lane, Latin1Validator, LegacyPipeline, LibPoolNormTubeGenerator, LibraryCreationRequest, LibraryEvent, LibraryTube, LibraryType, LibraryTypesRequestType, LinearSubmission, LocationReport, LocationReportJob, LocationReportsController, Lot, LotType, Map, MbraveTagsCreator, Messenger, MessengerCreator, MessengersController, MiSeqSequencingRequest, MovieLengthTask, MultiplexedCherrypickingTask, MultiplexedLibraryCreationRequest, MultiplexedLibraryTube, NoAccessionService, NovaseqxPeValidator, NullCustomMetadatumCollection, ObjectSpaceProfile, OligoEnumerator, Order, OrderCompatibilityValidator, OrderRole, OrdersController, PacBioLibraryTube, PacBioSamplePrepPipeline, PacBioSamplePrepRequest, PacBioSequencingPipeline, PacBioSequencingRequest, ParentsController, PbmcPoolingCustomerRequest, Permission, PhiXesController, PickList, PickListJob, PickListsController, PicoAssayPlate, PicoDilutionPlate, Pipeline, PipelineRequestInformationType, PipelinesController, PipelinesRequestType, Plate, PlateBarcode, PlateConversion, PlateCreation, PlateMapGeneration, PlateOwner, PlatePicksController, PlatePurpose, PlateSummariesController, PlateTemplate, PlateTemplateTask, PlateTemplatesController, PlateTransferTask, PlateType, PlateVolume, PlatesController, PolyMetadatum, PolymorphicUploader, PooledCherrypickRequest, PooledPlateCreation, Pooling, PoolingsController, PreCapturePool, PrepKitBarcodeTask, PrimerPanel, Product, ProductCatalogue, ProductCriteria, ProductLine, ProductProductCatalogue, Program, ProgramsValidator, Project, ProjectManager, ProjectsController, PsdFormatter, PulldownMultiplexedLibraryCreationRequest, PulldownMultiplexedLibraryTube, Purpose, QcAssay, QcDecision, QcFile, QcFilesController, QcMetric, QcMetricRequest, QcReport, QcReportJob, QcReportsController, QcRequest, QcResult, QcResultFactory, QcTube, Qcable, QcableCreator, QcableLibraryPlatePurpose, QcablePlatePurpose, QcableTubePurpose, QuadStampController, RackedTube, ReRequestSubmission, Receptacle, ReceptaclesController, ReferenceGenome, ReferenceGenomesController, ReportFail, ReportFailsController, Request, RequestEvent, RequestFactory, RequestInformation, RequestInformationType, RequestType, RequestsController, Robot, RobotProperty, RobotVerificationsController, Role, Sample, SampleAccessioningJob, SampleCompoundComponent, SampleLogisticsController, SampleManifest, SampleManifestAsset, SampleManifestUploadWithTagSequencesController, SamplePrepQcTask, SampleTube, SamplesController, SangerSampleId, Search, SearchesController, SequencingPipeline, SequencingRequest, SequenomQcPlate, SequenomQcPlatesController, SessionsController, SetDescriptorsTask, SingleRequestSubmission, SpecificTubeCreation, SpikedBuffer, Stamp, StateChange, StockLibraryTube, StockMultiplexedLibraryTube, StockStamper, StockStampersController, StripCreationRequest, StripTube, StudiesController, Study, StudyReport, StudyReportJob, StudyReportsController, StudySample, StudyType, Submission, SubmissionBuilderJob, SubmissionPool, SubmissionTemplate, SubmissionTemplateRequestType, SubmissionsController, SubmittedAsset, Supplier, SystemRequest, Tag, Tag2Layout, Tag2LayoutTemplate, TagGroup, TagGroupsController, TagGroupsTask, TagLayout, TagLayoutTemplate, TagLayoutTemplatesController, TagSet, TagSetsController, TagSubstitution, TagSubstitutionsController, Task, TestInformatics, Transfer, TransferRequest, TransferRequestCollection, TransferRequestCollectionTransferRequest, TransferTemplate, Tube, TubeCreation, TubeFromTubeCreation, TubeRack, TubeRackStatus, TubeRackStatusesController, TubeRackSummariesController, UatActionGenerator, UatActions, UatActionsController, UnsuitableAccessionService, User, UsersController, Utf8mb3Validator, Uuid, UuidsController, ValidateSampleSheetTask, VolumeUpdate, Well, WellAttribute, WorkCompletion, WorkCompletionsSubmission, WorkOrder, WorkOrderType, Workflow, WorkflowsController, WorkingDilutionPlate, XmlLoginProxy
Constant Summary collapse
- OrderTemplate =
SubmissionTemplate is really OrderTemplate, and the only place that actually cares is the API, so alias If we remove this, then we break our API endpoints. Some of which, at least at one point, actually had external users.
SubmissionTemplate
Instance Method Summary collapse
- #error_message_header(object) ⇒ Object
- #error_messages_ul_html_safe(object) ⇒ Object
-
#render_error_messages(object) ⇒ Object
error_messages_for method was deprecated, however lots of the tests depend on the message format it was using.
Instance Method Details
#error_message_header(object) ⇒ Object
364 365 366 367 368 369 370 |
# File 'app/helpers/application_helper.rb', line 364 def (object) count = object.errors..count model_name = object.class.to_s.tableize.tr('_', ' ').gsub(%r{/.*}, '').singularize is_plural = count > 1 ? 's' : '' header = "#{count} error#{is_plural} prohibited this #{model_name} from being saved" content_tag(:h2, header) end |
#error_messages_ul_html_safe(object) ⇒ Object
372 373 374 375 |
# File 'app/helpers/application_helper.rb', line 372 def (object) = object.errors..map { |msg| content_tag(:li, ERB::Util.html_escape(msg)) }.join.html_safe content_tag(:ul, ) end |
#render_error_messages(object) ⇒ Object
error_messages_for method was deprecated, however lots of the tests depend on the message format it was using. apidock.com/rails/ActionView/Helpers/ActiveRecordHelper/error_messages_for
356 357 358 359 360 361 362 |
# File 'app/helpers/application_helper.rb', line 356 def (object) return if object.errors.count.zero? contents = +'' contents << (object) contents << (object) content_tag(:div, contents.html_safe) end |