Here's the key to the new api.  the api_option in this case would be args[:optional_menu].  The comments show the precedence.