Class: Hyrax::Admin::RepositoryObjectPresenter

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

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



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

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