Class: Hyrax::Admin::DashboardPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/admin/dashboard_presenter.rb

Instance Method Summary collapse

Instance Method Details

#repository_growthObject



14
15
16
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 14

def repository_growth
  @repository_growth ||= Admin::RepositoryGrowthPresenter.new
end

#repository_objectsObject



10
11
12
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 10

def repository_objects
  @repository_objects ||= Admin::RepositoryObjectPresenter.new
end

#user_activityObject



18
19
20
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 18

def user_activity
  @user_activity ||= Admin::UserActivityPresenter.new
end

#user_countFixnum

Returns the number of currently registered users.

Returns:

  • (Fixnum)

    the number of currently registered users



6
7
8
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 6

def user_count
  ::User.where(guest: false).count
end