method
render_bind
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::LogSubscriber
render_bind(column, value)public
No documentation available.
# File activerecord/lib/active_record/log_subscriber.rb, line 23
def render_bind(column, value)
if column
if column.binary?
# This specifically deals with the PG adapter that casts bytea columns into a Hash.
value = value[:value] if value.is_a?(Hash)
value = value ? "<#{value.bytesize} bytes of binary data>" : "<NULL binary data>"
end
[column.name, value]
else
[nil, value]
end
end