Sha256: 6977de2f5d5d1e7805566cc45d1eb75c43032631dbab05ea8ba88fc1618368ab
Contents?: true
Size: 313 Bytes
Versions: 6
Compression:
Stored size: 313 Bytes
Contents
require 'nyauth/nyan' module Nyauth class Middleware def initialize(app) @app = app end def call(env) return @app.call(env) if env['nyauth'] env['nyauth'] = Nyauth::Nyan.new(env) Nyauth::Nyan.run_callback env['nyauth'] do @app.call(env) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems