lib/wicked_pdf/middleware.rb in wicked_pdf-1.0.4 vs lib/wicked_pdf/middleware.rb in wicked_pdf-1.0.5
- old
+ new
@@ -65,11 +65,11 @@
elsif request_path_is_pdf && @conditions[:except]
rules = [@conditions[:except]].flatten
rules.map do |pattern|
if pattern.is_a?(Regexp)
return false if @request.fullpath =~ pattern
- else
- return false if @request.path[0, pattern.length] == pattern
+ elsif @request.path[0, pattern.length] == pattern
+ return false
end
end
return true
else