method
unboundable?
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Relation::QueryAttribute
unboundable?()public
No documentation available.
# File activerecord/lib/active_record/relation/query_attribute.rb, line 33
def unboundable?
if defined?(@_unboundable)
@_unboundable
else
value_for_database unless value_before_type_cast.is_a?(StatementCache::Substitute)
@_unboundable = nil
end
rescue ::RangeError
@_unboundable = type.cast(value_before_type_cast) <=> 0
end