I needed this myself, so here it is QA-style:
By default, Rails Admin shows a model\'s default_scope. How do I get it to show every model completely unscoped?
Add this monkey patch to your rails admin initializer:
### Monkey pactch for unscoped records in admin panel
require 'rails_admin/main_controller'
module RailsAdmin
class MainController
alias_method :old_get_collection, :get_collection
alias_method :old_get_object, :get_object
def get_collection(model_config, scope, pagination)
old_get_collection(model_config, model_config.abstract_model.model.unscoped, pagination)
end
def get_object
raise RailsAdmin::ObjectNotFound unless (object = @abstract_model.model.unscoped.find(params[:id]))
@object = RailsAdmin::Adapters::ActiveRecord::AbstractObject.new(object)
end
end
end
Taken from https://github.com/sferik/rails_admin/issues/353.