Class: Hyrax::Admin::RepositoryObjectPresenter

Inherits:
Object
  • Object
show all
Includes:
Blacklight::SearchHelper
Defined in:
app/presenters/hyrax/admin/repository_object_presenter.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



6
7
8
9
10
11
# File 'app/presenters/hyrax/admin/repository_object_presenter.rb', line 6

def as_json(*)
  counts.map do |k, v|
    { label: I18n.translate(k, scope: 'hyrax.admin.stats.repository_objects.series'),
      value: v }
  end
end