# File lib/rack/protection/cookie_tossing.rb, line 59 def cookie_paths(path) path = '/' if path.to_s.empty? paths = [] Pathname.new(path).descend { |p| paths << p.to_s } paths end