Module: TinyRackFlash::Helpers

Defined in:
lib/tiny_rack_flash.rb

Instance Method Summary collapse

Instance Method Details

#flashObject



49
50
51
52
53
54
# File 'lib/tiny_rack_flash.rb', line 49

def flash
  env[FlashKey] ||= begin
    session = env[SessionKey]
    FlashHash.new((session ? session[FlashKey] : {}))
  end
end