Class: RecordLoader::RequestInformationTypeLoader
- Inherits:
-
ApplicationRecordLoader
- Object
- Base
- ApplicationRecordLoader
- RecordLoader::RequestInformationTypeLoader
- Defined in:
- lib/record_loader/request_information_type_loader.rb
Overview
Creates the specified request information type if they are not present
Instance Method Summary collapse
Methods inherited from ApplicationRecordLoader
Instance Method Details
#create_or_update!(key, options) ⇒ Object
12 13 14 |
# File 'lib/record_loader/request_information_type_loader.rb', line 12 def create_or_update!(key, ) RequestInformationType.create_with().find_or_create_by!(key:) end |