Basically I want to be able to have a count value in the active admin navigation bar, that updates according to a query. But it seems like the registered models are cached, and thereby also the navigation label provided by the registered model.
Is it possible to change this default caching behaviour?
ActiveAdmin.register ChangeRequest do
config.sort_order = "created_at_desc"
actions :all, except: [:show]
menu label: "Change Requests (#{ChangeRequest.pending.count})"
....
end
If possible, the "menu label:" should be updated on every reload...