Class: RecordLoader::PrimerPanelLoader

Inherits:
ApplicationRecordLoader show all
Defined in:
lib/record_loader/primer_panel_loader.rb

Overview

Creates the specified primer panels if they are not present

Instance Method Summary collapse

Methods inherited from ApplicationRecordLoader

#wip_list

Instance Method Details

#create_or_update!(name, options) ⇒ Object



13
14
15
# File 'lib/record_loader/primer_panel_loader.rb', line 13

def create_or_update!(name, options)
  PrimerPanel.create_with(options).find_or_create_by!(name:)
end