class ActionView::OptimizedFileSystemResolver

Public Instance Methods

extract_handler_and_format_and_variant(*args) click to toggle source

Different versions of rails have different method signatures here, path is always first

# File lib/maildown/ext/action_view.rb, line 11
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
original_extract_handler_and_format_and_variant(*args)