How to disable active_admin_import action by condition on index page
I have a code to disable 'new, create, destroy' actions by condition. Need to do same with active_admin_import
controller do
def action_methods
if Admin::PurchaseOrderDecorator.decorate(parent).received?
super - %w(new create destroy)
else
super
end
end
end
active_admin_import(
....
)