class ActionDispatch::Routing::Mapper::Mapping
def self.optional_format?(path, format)
def self.optional_format?(path, format) format != false && !path.match?(OPTIONAL_FORMAT_REGEX) end
def self.optional_format?(path, format) format != false && !path.match?(OPTIONAL_FORMAT_REGEX) end