18F/identity-dashboard

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class HomeController < ApplicationController
  def index
    render :index and return unless user_signed_in?

    includes = %i[users service_providers agency]
    @teams = current_user.teams.includes(*includes).all

    render 'home/authenticated/index'
  end
end