method
render_bind
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Explain
render_bind(attr)private
No documentation available.
# File activerecord/lib/active_record/explain.rb, line 40
def render_bind(attr)
value = if attr.type.binary? && attr.value
"<#{attr.value_for_database.to_s.bytesize} bytes of binary data>"
else
connection.type_cast(attr.value_for_database)
end
[attr.name, value]
end