Module: Sufia::Admin::StatsBehavior

Extended by:
ActiveSupport::Concern
Included in:
Admin::StatsController
Defined in:
app/controllers/concerns/sufia/admin/stats_behavior.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/concerns/sufia/admin/stats_behavior.rb', line 10

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