class OasRails::Extractors::RouteExtractor

def ignore_custom_actions(route)

Ignoring "controller#action" AND "api_path/controller#action"
Support ignoring "controller#action"
Support controller name only to ignore all controller actions.
Sanitize api_path by removing the "/" if it starts with that, and adding "/" if it ends without that.
Ignore user-specified paths in initializer configuration.
def ignore_custom_actions(route)
  api_path = "#{OasRails.config.api_path.sub(%r{\A/}, '')}/".sub(%r{/+$}, '/')
  ignored_actions = OasRails.config.ignored_actions.flat_map do |custom_route|
    if custom_route.start_with?(api_path)
      [custom_route]
    else
      ["#{api_path}#{custom_route}", custom_route]
    end
  end
  controller_action = "#{route.defaults[:controller]}##{route.defaults[:action]}"
  controller_only = route.defaults[:controller]
  ignored_actions.include?(controller_action) || ignored_actions.include?(controller_only)
end