Class Innate::Session::Flash
In: lib/innate/session/flash.rb
Parent: Object

The purpose of this class is to act as a unifier of the previous and current flash.

Flash means pairs of keys and values that are held only over one request/response cycle. So you can assign a key/value in the current session and retrieve it in the current and following request.

Please see the Innate::Helper::Flash for details on the usage in your application.

Methods

[]   []=   combined   current   delete   each   empty?   inspect   merge   merge!   new   previous   rotate!  

Included Modules

Enumerable

Public Class methods

Public Instance methods

flash[key] in your Controller

flash[key] = value in your Controller

combined key/value pairs of previous and current current keys overshadow the old ones.

the current session[:FLASH]

Delete a key

iterate over the combined session

check if combined is empty

the current session[:FLASH_PREVIOUS]

Rotation means current values are assigned as old values for the next request.

[Validate]