sferik/rails_admin — Issue #1023: dashboard history should show entries in descending order
Author: tamaloa
Created: 2012-03-01 19:10:48+00:00
State: open

For papertrails (and propably also internal history) the dashboard history shows the first 100 entries in the order the database return them.

They should be shown ordered by created_at and descending (as it is of more interest what happened last).
In RailsAdmin::Extensions::PaperTrail::AuditingAdapter simply adding an order in the latest method is sufficient.

def latest
Version.order('created_at DESC').limit(100).map{|version| VersionProxy.new(version, @user_class)}
end

Maybe limit should be the same as the global limit for all tables or even seperately configurable