Module: Relevance::CoreExtensions::Response
- Defined in:
- lib/relevance/core_extensions/response.rb
Overview
dynamically mixed in to response objects
Instance Method Summary collapse
Instance Method Details
#html? ⇒ Boolean
3 4 5 6 7 |
# File 'lib/relevance/core_extensions/response.rb', line 3 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 |