Module: PlatesHelper
- Defined in:
- app/helpers/plates_helper.rb
Defined Under Namespace
Classes: AliquotError
Instance Method Summary collapse
- #padded_wells_by_row(plate) ⇒ Object
- #plate_creator_options(plate_creators) ⇒ Object
- #plate_options_for_creating_from_tubes ⇒ Object
Instance Method Details
#padded_wells_by_row(plate) ⇒ Object
6 7 8 9 |
# File 'app/helpers/plates_helper.rb', line 6 def padded_wells_by_row(plate) wells = wells_hash(plate) padded_well_name_with_index(plate) { |padded_name, index| yield(padded_name, *wells[index]) } end |
#plate_creator_options(plate_creators) ⇒ Object
11 12 13 |
# File 'app/helpers/plates_helper.rb', line 11 def (plate_creators) plate_creators.pluck(:name, :id, :valid_options).map { |name, id, | [name, id, { data: }] } end |
#plate_options_for_creating_from_tubes ⇒ Object
15 16 17 |
# File 'app/helpers/plates_helper.rb', line 15 def Rails.application.config.plates_from_tubes_config[:plate_purpose_options_for_creating_from_tubes] end |