module Roda::RodaPlugins::Flash::InstanceMethods

  1. lib/roda/plugins/flash.rb

Methods

Public Instance

  1. flash

Public Instance methods

flash()

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
 98 def flash
 99   # RODA4: Remove fallback to checking :_flash
100   @_flash ||= FlashHash.new(session['_flash'] || (session['_flash'] = session.delete(:_flash)))
101 end