class ActiveRecord::Relation::QueryAttribute
:nodoc:
def infinite?
def infinite? infinity?(value_before_type_cast) || serializable? && infinity?(value_for_database) end
def infinity?(value)
def infinity?(value) value.respond_to?(:infinite?) && value.infinite? end
def nil?
def nil? unless value_before_type_cast.is_a?(StatementCache::Substitute) value_before_type_cast.nil? || type.respond_to?(:subtype) && serializable? && value_for_database.nil? end end
def type_cast(value)
def type_cast(value) value end
def unboundable?
def unboundable? unless defined?(@_unboundable) serializable? { |value| @_unboundable = value <=> 0 } && @_unboundable = nil end @_unboundable end
def value_for_database
def value_for_database @value_for_database ||= super end
def with_cast_value(value)
def with_cast_value(value) QueryAttribute.new(name, value, type) end