Class: Sufia::AdminController

Inherits:
ApplicationController
  • Object
show all
Includes:
Blacklight::Base
Defined in:
app/controllers/sufia/admin_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
# File 'app/controllers/sufia/admin_controller.rb', line 5

def show
  authorize! :read, :admin_dashboard
  add_breadcrumb t(:'sufia.controls.home'), root_path
  add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path
  @presenter = AdminDashboardPresenter.new
  @admin_set_rows = Sufia::AdminSetService.new(self).search_results_with_work_count(:read)
end