Sha256: 016d85d953e8f639608ccc392a1a3ac29a5e294dcaad1555ed7bc1cac2ee55fc
Contents?: true
Size: 553 Bytes
Versions: 5
Compression:
Stored size: 553 Bytes
Contents
module Sufia module Admin module StatsBehavior extend ActiveSupport::Concern included do include Sufia::Admin::DepositorStats end def index stats_filters = params.fetch(:stats_filters, {}) # initialize the presenter @presenter = AdminStatsPresenter.new(stats_filters, params.fetch(:limit, "5").to_i) # get deposit stats @presenter.deposit_stats = stats_filters @presenter.depositors = depositors(stats_filters) render 'index' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems