class ActiveRecord::Relation::QueryAttribute

def infinity?(value)

def infinity?(value)
  value.respond_to?(:infinite?) && value.infinite?
end