Module: HasFilters

Extended by:
ActiveSupport::Concern
Included in:
LimitsValidator, SequencingKitBoxBarcodeValidator, WellCombinationsValidator, WellPositionsValidator
Defined in:
app/validators/has_filters.rb

Overview

Concern for filtering records currently will filter out records which are marked for destruction could be extended to filter out other records

Instance Method Summary collapse

Instance Method Details

#exclude_marked_for_destructionBoolean

records which are marked for destruction should be excluded from the validation

Returns:

  • (Boolean)


11
12
13
# File 'app/validators/has_filters.rb', line 11

def exclude_marked_for_destruction
  @exclude_marked_for_destruction ||= options[:exclude_marked_for_destruction] || false
end