class ActiveRecord::LogSubscriber

def render_bind(attr, value)

Experimental RBS support (using type sampling data from the type_fusion project).

def render_bind: ((ActiveRecord::Relation::QueryAttribute | ActiveModel::Attribute::FromUser | ActiveModel::Attribute::WithCastValue) attr, (String | Integer | nil) value) -> Array[String]

This signature was generated using 108 samples from 2 applications.

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