class ActiveRecord::Associations::JoinDependency::JoinBase

def match?(other)

def match?(other)
  return true if self == other
  super && base_klass == other.base_klass
end