Class: RequestType::PoolingMethod

Inherits:
ApplicationRecord show all
Defined in:
app/models/request_type/pooling_method.rb

Defined Under Namespace

Modules: PlateRow, Submission

Instance Method Summary collapse

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#import_behaviourObject



11
12
13
14
15
16
# File 'app/models/request_type/pooling_method.rb', line 11

def import_behaviour
  return if pooling_behaviour.nil?

  behavior_module = "RequestType::PoolingMethod::#{pooling_behaviour}".constantize
  class_eval { include(behavior_module) }
end

#pooling_behaviour=(*params) ⇒ Object



18
19
20
21
# File 'app/models/request_type/pooling_method.rb', line 18

def pooling_behaviour=(*params)
  super
  import_behaviour
end