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

Version Path
relevance-tarantula-0.3.2 lib/relevance/core_extensions/response.rb
relevance-tarantula-0.3.3 lib/relevance/core_extensions/response.rb
romanbsd-tarantula-0.1.8 lib/relevance/core_extensions/response.rb
romanbsd-tarantula-0.2.0 lib/relevance/core_extensions/response.rb
tarantula-rails3-0.3.3 lib/relevance/core_extensions/response.rb
panmind-tarantula-0.3.3 lib/relevance/core_extensions/response.rb
tarantula-0.3.3 lib/relevance/core_extensions/response.rb
tarantula-0.0.5 lib/relevance/core_extensions/response.rb
tarantula-0.0.8.1 lib/relevance/core_extensions/response.rb
tarantula-0.1.4 lib/relevance/core_extensions/response.rb
tarantula-0.1.8 lib/relevance/core_extensions/response.rb
tarantula-0.2.0 lib/relevance/core_extensions/response.rb
tarantula-0.1.5 lib/relevance/core_extensions/response.rb