Fixes #8655: Show content view and environment pairings for library repo...

...sitories.
Think you want the code snippet below for it to be consistent.
```ruby
      repositories = repositories
                         .joins(:content_view_repositories)
                         .where("#{ContentViewRepository.table_name}.content_view_id" => params[:content_view_id])
```