• R
    Use `unboundable?` rather than `boundable?` · 5b6daff5
    Ryuta Kamizono 提交于
    The `unboundable?` behaves like the `infinite?`.
    
    ```ruby
    inf = Topic.predicate_builder.build_bind_attribute(:id, Float::INFINITY)
    inf.infinite?    # => 1
    
    oob = Topic.predicate_builder.build_bind_attribute(:id, 9999999999999999999999999999999)
    oob.unboundable? # => 1
    
    inf = Topic.predicate_builder.build_bind_attribute(:id, -Float::INFINITY)
    inf.infinite?    # => -1
    
    oob = Topic.predicate_builder.build_bind_attribute(:id, -9999999999999999999999999999999)
    oob.unboundable? # => -1
    ```
    5b6daff5
to_sql.rb 27.3 KB