Module: ParamsReady::Pagination::Tendency
- Included in:
- Falling, Growing
- Defined in:
- lib/params_ready/pagination/tendency.rb
Defined Under Namespace
Modules: Falling, Growing
Instance Method Summary
collapse
Instance Method Details
#non_nullable_predicate(column, value, nested) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/params_ready/pagination/tendency.rb', line 4
def non_nullable_predicate(column, value, nested)
if_equal = column.eq(value).and(nested)
grouping = Arel::Nodes::Grouping.new(if_equal)
comparison = comparison_predicate(column, value)
grouping.or(comparison)
end
|