method

sanitize_bounds

Importance_0
v7.2.3 - Show latest stable - 0 notes - Class: Range
sanitize_bounds(from, to) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb, line 81
            def sanitize_bounds(from, to)
              [
                (from == -::Float::INFINITY && !INFINITE_FLOAT_RANGE.cover?(to)) ? nil : from,
                (to == ::Float::INFINITY && !INFINITE_FLOAT_RANGE.cover?(from)) ? nil : to
              ]
            end
Register or log in to add new notes.