Skip to content

Commit 08448f9

Browse files
committed
Fix 'View changes' link just displaying the list of versions again.
Turns out the proc which generates the list raises the following error: NameError Exception: uninitialized constant RailsAdmin::PaperTrail::Version
1 parent 2e60093 commit 08448f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rails_admin_history_rollback/config/actions/history_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HistoryIndex < Base
2424
proc do
2525
@general = true
2626
@history = @auditing_adapter && @auditing_adapter.listing_for_model(@abstract_model, params[:query], params[:sort], params[:sort_reverse], params[:all], params[:page]) || []
27-
@version = PaperTrail::Version.find(params[:version_id]) if params[:version_id] rescue false
27+
@version = ::PaperTrail::Version.find(params[:version_id]) if params[:version_id] rescue false
2828

2929
if request.get? # SHOW
3030

0 commit comments

Comments
 (0)