Sha256: fa74ba0e07861f169fc4e7b386d1ddff929f4e2e905f65a2c94d27f723702ffc
Contents?: true
Size: 615 Bytes
Versions: 8
Compression:
Stored size: 615 Bytes
Contents
module Sufia module Admin module StatsBehavior extend ActiveSupport::Concern included do layout 'admin' end def show authorize! :read, Sufia::Statistics stats_filters = params.fetch(:stats_filters, {}) limit = params.fetch(:limit, "5").to_i @presenter = AdminStatsPresenter.new(stats_filters, limit) add_breadcrumb t(:'sufia.controls.home'), root_path add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path add_breadcrumb t(:'sufia.admin.sidebar.statistics'), sufia.admin_stats_path end end end end
Version data entries
8 entries across 8 versions & 1 rubygems