method
render_bind
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::LogSubscriber
render_bind(attr, value)private
No documentation available.
# File activerecord/lib/active_record/log_subscriber.rb, line 49
def render_bind(attr, value)
if attr.is_a?(Array)
attr = attr.first
elsif attr.type.binary? && attr.value
value = "<#{attr.value_for_database.to_s.bytesize} bytes of binary data>"
end
[attr && attr.name, value]
end