Object
# File lib/rack/flash/test.rb, line 3 def self.fake_session @fake_session ||= {} end
Rack Middleware implementation
# File lib/rack/flash.rb, line 130 def initialize(app, opts={}) if klass = app_class(app, opts) klass.class_eval do def flash; env['x-rack.flash'] end end end @app, @opts = app, opts end
# File lib/rack/flash.rb, line 133 def flash; env['x-rack.flash'] end
# File lib/rack/flash/test.rb, line 8 def new_call(env) env['rack.session'] ||= Rack::Flash.fake_session old_call(env) end
Generated with the Darkfish Rdoc Generator 2.