Class: RecordLoader::TagGroupAdapterTypeLoader

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

Overview

Creates the specified tag group adapter types if they are not present

Instance Method Summary collapse

Instance Method Details

#create_or_update!(name, _options) ⇒ Object


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

def create_or_update!(name, _options)
  TagGroup::AdapterType.find_or_create_by!(name: name)
end