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
13 14 15 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 13 def repository_growth @repository_growth ||= Admin::RepositoryGrowthPresenter.new end |
#repository_objects ⇒ Object
9 10 11 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 9 def repository_objects @repository_objects ||= Admin::RepositoryObjectPresenter.new end |
#user_activity ⇒ Object
17 18 19 |
# File 'app/presenters/hyrax/admin/dashboard_presenter.rb', line 17 def user_activity @user_activity ||= Admin::UserActivityPresenter.new end |
#user_count ⇒ Fixnum
Returns 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 |