In case the controller is written with a single custom action using a single method, but with the HTTP method prefixing the action method name, this logic should always look for the compound name first, and fall back to the regular name if that is not found. That is, look for the "get_custom" and only use "custom" if it isn't found.