lib/rack/olark.rb in rack-olark-0.2.0 vs lib/rack/olark.rb in rack-olark-0.2.1

- old
+ new

@@ -61,9 +61,9 @@ def html?(headers) (Rack::Utils::HeaderHash.new(headers)['Content-Type'] || '').include?('html') end def should_inject?(request) - @paths.select { |p| request.path_info =~ p }.length > 0 + @paths.map { |p| request.path_info =~ p }.include?(true) end end end