instance method
render_bind
Ruby on Rails 7.2.3
Since v4.0.13 Last seen in v8.0.4 PrivateSignature
render_bind(attr, value)
No documentation comment.
Parameters
-
attrreq -
valuereq
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 65
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
Defined in activerecord/lib/active_record/log_subscriber.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::LogSubscriber