Module: PlateCreation::Children

Included in:
PlateCreation, PooledPlateCreation
Defined in:
app/models/plate_creation.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


16
17
18
19
20
21
22
23
# File 'app/models/plate_creation.rb', line 16

def self.included(base)
  base.class_eval do
    include_plate_named_scope :child
    belongs_to :child, class_name: 'Plate'

    validates_unassigned(:child)
  end
end