Module: SubmissionPool::Association::Plate

Included in:
Plate
Defined in:
app/models/submission_pool.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'app/models/submission_pool.rb', line 5

def self.included(base)
  base.class_eval do
    has_many :submission_pools, ->() { distinct }, through: :well_requests_as_target

    def submission_pools
      SubmissionPool.for_plate(self)
    end
  end
end