```ruby
class ContactsController < ApplicationController
  expose(:search) {
    ContactsSearch.new params[:search]
  }

  expose(:department) {
    Department.find_by!(slug: params[:department_id])
  }

  expose(:contact) {
    department.contacts.find_by!(slug: params[:id]).decorate
  }

  expose(:contacts) {
    department.
    contacts.
    ungrouped.
    for_listing.
    decorate
  }

  def index
  end

  def show
  end
end
```

Include all contacts in the listing
user
```ruby
class ContactsController < ApplicationController
  expose(:search) {
    ContactsSearch.new params[:search]
  }

  expose(:department) {
    Department.find_by!(slug: params[:department_id])
  }

  expose(:contact) {
    department.contacts.find_by!(slug: params[:id]).decorate
  }

  expose(:contacts) {
    department.
    contacts.
    for_listing.
    decorate
  }

  def index
  end

  def show
  end
end
```
assistant