Module: SubmissionPool::Association::Plate

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

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

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