Sha256: 35cd062884b8b59644b7b372347dc2401e91a33fd92cacec5fb4968eafd886a6
Contents?: true
Size: 356 Bytes
Versions: 6
Compression:
Stored size: 356 Bytes
Contents
module CohortScope class StrictCohort < Cohort # (Used by <tt>strict_cohort</tt>) # # Reduce constraints by removing the least important one. def self.reduce_constraints(model, constraints) reduced_constraints = constraints.dup reduced_constraints.delete constraints.keys.last reduced_constraints end end end
Version data entries
6 entries across 6 versions & 1 rubygems