class Radical::Flash
Constants
- FLASH_KEY
- SESSION_KEY
Public Class Methods
new(app)
click to toggle source
# File lib/radical/flash.rb, line 45 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/radical/flash.rb, line 49 def call(env) flash_hash ||= FlashHash.new(env[SESSION_KEY]) flash_hash.mark! res = @app.call(env) flash_hash.clear! res end