Sha256: a42e2cab67e8af5f3f068b136d3be8597e3181d3f826fc1739fd258f58216ef0
Contents?: true
Size: 367 Bytes
Versions: 33
Compression:
Stored size: 367 Bytes
Contents
# dynamically mixed in to response objects module Relevance::CoreExtensions::Response def html? # some versions of Rails integration tests don't set content type # so we are treating nil as html. A better fix would be welcome here. ((content_type =~ %r{^text/html}) != nil) || content_type == nil end end
Version data entries
33 entries across 33 versions & 5 rubygems