Sha256: dd779f54cb4c13a64446117900bd3f6fd34874d068a6cb6fcb1e3468a09c75f8

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

paginated_collection(versions, display_total: false, download_links: false) do
  table_for(versions, i18n: ::PaperTrail::Version, class: "index_table") do
    column(:id)
    column(:whodunnit) do |record|
      record.whodunnit.presence || t("views.version.unknown_user")
    end
    column(:event, :event_i18n)
    column(:item_type, :item_class_i18n)
    column(:object) do |record|
      record.item_instance ? attributes_table_for(record.item_instance, *record.item_column_names) : nil
    end
    column(:created_at)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_admin_versioning-0.1.1 app/views/application/versions.html.arb
active_admin_versioning-0.1.0 app/views/application/versions.html.arb