Class: Hyrax::Admin::DashboardPresenter
- Inherits:
-
Object
- Object
- Hyrax::Admin::DashboardPresenter
- Defined in:
- app/presenters/hyrax/admin/dashboard_presenter.rb
Instance Method Summary collapse
- #repository_growth ⇒ Object
- #repository_objects ⇒ Object
- #user_activity ⇒ Object
-
#user_count ⇒ Fixnum
The number of currently registered users.
Instance Method Details
#repository_growth ⇒ Object
14 15 16 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 14 def repository_growth @repository_growth ||= Admin::RepositoryGrowthPresenter.new end |
#repository_objects ⇒ Object
10 11 12 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 10 def repository_objects @repository_objects ||= Admin::RepositoryObjectPresenter.new end |
#user_activity ⇒ Object
18 19 20 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 18 def user_activity @user_activity ||= Admin::UserActivityPresenter.new end |
#user_count ⇒ Fixnum
Returns 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 |