def extract_handler_and_format_and_variant(*args)
      if args.first.end_with?('md.erb')
        path = args.shift
        path = path.gsub(/\.md\.erb\z/, '.md+erb')
        args.unshift(path)
      end
      return original_extract_handler_and_format_and_variant(*args)
    end
def extract_handler_and_format_and_variant(*args)
      if args.first.end_with?('md.erb')
        path = args.shift
        path = path.gsub(/\.md\.erb\z/, '.md+erb')
        args.unshift(path)
      end
      return original_extract_handler_and_format_and_variant(*args)
    end
def extract_handler_and_format_and_variant ( * args ) if args . first . end_with? ( 'md.erb' ) path = args . shift path = path . gsub ( / \. \. \z / , '.md+erb' ) args . unshift ( path ) end return original_extract_handler_and_format_and_variant ( args ) end
Different versions of rails have different
 method signatures here, path is always first
Different versions of rails have different method signatures here path is always first