Module: Hyrax::Admin::StatsBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- StatsController
- Defined in:
- app/controllers/concerns/hyrax/admin/stats_behavior.rb
Overview
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/concerns/hyrax/admin/stats_behavior.rb', line 25 def show :read, Hyrax::Statistics stats_filters = params.fetch(:stats_filters, {}) limit = params.fetch(:limit, "5").to_i @presenter = build_presenter(stats_filters, limit) t(:'hyrax.controls.home'), root_path t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path t(:'hyrax.admin.sidebar.statistics'), hyrax.admin_stats_path end |