Class: Spree::AssembliesPart

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/spree/assemblies_part.rb

Class Method Summary collapse

Class Method Details

.get(assembly_id, part_id) ⇒ Object



10
11
12
# File 'app/models/spree/assemblies_part.rb', line 10

def self.get(assembly_id, part_id)
  find_or_initialize_by(assembly_id: assembly_id, part_id: part_id)
end