class ActiveAdmin::MenuItem

def display_if_block

a default block always returning true will be returned.
Returns the display if block. If the block was not explicitly defined
def display_if_block
  @display_if_block || lambda { |_| true }
end