This could probably shorter as:
```ruby
when Associations::CollectionProxy, AssociationRelation
  self == other.to_a
```