method
render_bind
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::LogSubscriber
render_bind(attribute)public
No documentation available.
# File activerecord/lib/active_record/log_subscriber.rb, line 23
def render_bind(attribute)
value = if attribute.type.binary? && attribute.value
if attribute.value.is_a?(Hash)
"<#{attribute.value_for_database.to_s.bytesize} bytes of binary data>"
else
"<#{attribute.value.bytesize} bytes of binary data>"
end
else
attribute.value_for_database
end
[attribute.name, value]
end