Module: PlateCreation::Children

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
17
18
19
# File 'app/models/plate_creation.rb', line 12

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

    validates_unassigned(:child)
  end
end