Sha256: 6b854ebd8bf5ad0a7be4824ae9cd55e6b2652c13bbbaa4852930fff8a5e70c5f

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

class Tynn
  module NotFound
    module InstanceMethods
      def call(*) # :nodoc:
        result = super

        if result[0] == 404 && result[2].empty?
          not_found

          return res.finish
        else
          return result
        end
      end

      def not_found # :nodoc:
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tynn-1.4.0 lib/tynn/not_found.rb
tynn-1.3.0 lib/tynn/not_found.rb
tynn-1.2.0 lib/tynn/not_found.rb
tynn-1.1.0 lib/tynn/not_found.rb
tynn-1.0.0 lib/tynn/not_found.rb
tynn-1.0.0.rc3 lib/tynn/not_found.rb