Module: Roda::RodaPlugins::Flash::InstanceMethods

Defined in:
lib/roda/plugins/flash.rb

Constant Summary collapse

KEY =

The internal session key used to store the flash.

:_flash

Instance Method Summary collapse

Instance Method Details

#flashObject

Access the flash hash for the current request, loading it from the session if it is not already loaded.



86
87
88
# File 'lib/roda/plugins/flash.rb', line 86

def flash
  @_flash ||= FlashHash.new(session[KEY])
end