Sha256: ab73023ff6abf2af010c85350b5c8c1dfa6302c432b0b66c5bd2cbda1f540303

Contents?: true

Size: 554 Bytes

Versions: 8

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Admin
    class DashboardPresenter
      # @return [Fixnum] the number of currently registered users
      def user_count
        ::User.where(guest: false).count
      end

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-3.2.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.1.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.2 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.rc4 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.rc3 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.rc2 app/presenters/hyrax/admin/dashboard_presenter.rb