In a resource registered with ActiveAdmin, I have the following default_scope defined for the model:
default_scope :order => 'activities.updated_at DESC'
This apparently prevents me from being able to change the sorting on the resource's index page by clicking on the column titles. Is there a way to keep this default scope but get Active Admin sorting to work?
ActiveAdmin.register Post do
controller do
def scoped_collection
Post.unscoped
end
end
end