module ParamsReady::Pagination::Nulls::Last

Public Class Methods

if_not_null_predicate(tendency, column, value, nested) click to toggle source
# File lib/params_ready/pagination/nulls.rb, line 25
def self.if_not_null_predicate(tendency, column, value, nested)
  tendency.non_nullable_predicate(column, value, nested).or(column.eq(nil))
end
if_null_predicate(column, nested) click to toggle source
# File lib/params_ready/pagination/nulls.rb, line 21
def self.if_null_predicate(column, nested)
  Arel::Nodes::Grouping.new(column.eq(nil).and(nested))
end