Class: CohortScope::StrictCohort

Inherits:
Cohort
  • Object
show all
Defined in:
lib/cohort_scope/strict_cohort.rb

Constant Summary

Constants inherited from Cohort

Cohort::IMPOSSIBLE_CONDITION

Class Method Summary collapse

Methods inherited from Cohort

#+, #__getobj__, #__setobj__, #active_record, #any?, #as_json, #count, #count=, create, #empty?, #initialize, #inspect, #none?, #to_json, #where_value_nodes

Constructor Details

This class inherits a constructor from CohortScope::Cohort

Class Method Details

.reduce_constraints(active_record, constraints) ⇒ Object

Reduce constraints by removing the least important one.



4
5
6
# File 'lib/cohort_scope/strict_cohort.rb', line 4

def self.reduce_constraints(active_record, constraints)
  constraints[0..-2]
end