Sha256: 69a9d63d7ddb37d73f76fd4845396324123cbec464f10a9cea71c36d29e008af

Contents?: true

Size: 214 Bytes

Versions: 4

Compression:

Stored size: 214 Bytes

Contents

module CohortScope
  class StrictCohort < Cohort
    # Reduce constraints by removing the least important one.
    def self.reduce_constraints(active_record, constraints)
      constraints[0..-2]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cohort_scope-0.2.3 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.2.2 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.2.1 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.2.0 lib/cohort_scope/strict_cohort.rb