method
render_bind
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::LogSubscriber
render_bind(attr, value)private
No documentation available.
# File activerecord/lib/active_record/log_subscriber.rb, line 86
def render_bind(attr, value)
case attr
when ActiveModel::Attribute
if attr.type.binary? && attr.value
value = "<#{attr.value_for_database.to_s.bytesize} bytes of binary data>"
end
when Array
attr = attr.first
else
attr = nil
end
[attr&.name, value]
end