lib/tynn/not_found.rb in tynn-1.0.0.rc1 vs lib/tynn/not_found.rb in tynn-1.0.0.rc2

- old
+ new

@@ -1,16 +1,18 @@ -module Tynn::NotFound - def call(*) # :nodoc: - result = super +class Tynn + module NotFound + def call(*) # :nodoc: + result = super - if result[0] == 404 && result[2].empty? - not_found + if result[0] == 404 && result[2].empty? + not_found - return res.finish - else - return result + return res.finish + else + return result + end end - end - def not_found # :nodoc: + def not_found # :nodoc: + end end end