Sha256: d9e8204018a4f12180755accf2a68daef7760e43b533e05eed2d1101f2dc15e7
Contents?: true
Size: 438 Bytes
Versions: 9
Compression:
Stored size: 438 Bytes
Contents
# dynamically mixed in to response objects module Relevance module CoreExtensions module 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.respond_to?(:html?) ? content_type.html? : content_type =~ %r{^text/html}) || content_type.nil? end end end end
Version data entries
9 entries across 9 versions & 2 rubygems