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