Class: CohortScope::StrictCohort
- Defined in:
- lib/cohort_scope/strict_cohort.rb
Class Method Summary collapse
-
.reduce_constraints(active_record, constraints) ⇒ Object
Reduce constraints by removing the least important one.
Methods inherited from Cohort
#+, #__getobj__, #__setobj__, #active_record, #as_json, create, #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 |