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



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

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

#repository_objectsObject



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

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

#user_activityObject



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

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



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

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