Codeminer42/Punchclock

View on GitHub
app/controllers/new_admin/allocation_charts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module NewAdmin
  class AllocationChartsController < NewAdminController
    authorize_resource class: false

    def index
      @allocations = paginate_record(allocations)
    end

    private

    def allocations
      AllocationsAndUnallocatedUsersQuery.new(Allocation).call
    end
  end
end