Sha256: 0720fee436a43e88fcb7189098fdcad4716087e4f6e3a6a5b096716369f4bd9f
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true # This monkeypatch allows the use of `.md.erb` file extensions # in addition to `.md+erb` and `.md` module ActionView class OptimizedFileSystemResolver alias :original_extract_handler_and_format_and_variant :extract_handler_and_format_and_variant # Different versions of rails have different # method signatures here, path is always first 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maildown-3.3.0 | lib/maildown/ext/action_view.rb |