method
build
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::PredicateBuilder
build(attribute, value)public
No documentation available.
# File activerecord/lib/active_record/relation/predicate_builder.rb, line 50
def build(attribute, value)
if table.type(attribute.name).force_equality?(value)
bind = build_bind_attribute(attribute.name, value)
attribute.eq(bind)
else
handler_for(value).call(attribute, value)
end
end