module Roda::RodaPlugins::Flash::InstanceMethods

  1. lib/roda/plugins/flash.rb


Public Instance

  1. flash

Public Instance methods


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

[show source]
   # File lib/roda/plugins/flash.rb
93 def flash
94   # :_flash to support transparent upgrades from previous key
95   @_flash ||=['_flash'] || (session['_flash'] = session.delete(:_flash)))
96 end