class Effective::CommitteesController

def index

def index
  @committees = resource_scope.for_dashboard.sorted
  @page_title = "My #{EffectiveResources.et('effective_committees.name')}"
  EffectiveResources.authorize!(self, :index, Effective::Committee)
  render 'index'
end

def permitted_params

def permitted_params
  model = (params.key?(:effective_committee) ? :effective_committee : :committee)
  params.require(model).permit!
end

def volunteers_and_committees

def volunteers_and_committees
  @committees = resource_scope.for_index.sorted
  @page_title = "Volunteers and Committees"
  EffectiveResources.authorize!(self, :index, Effective::Committee)
end