class Bezel::Plug::Flash
include Bezel::Plug
Carries the flash between requests in the session (after
Plug::Session): the messages a request put (Conn#put_flash) are
the next request's conn.flash[:kind], and then gone. Messages shown
in the same request use Bezel::Flash#now.
Constants
KEY: String
The session key the flash is kept under.
Class methods
def self.new -> Bezel::Plug::Flash
The plug.
Methods
def call(conn: Bezel::Conn) -> Bezel::Conn
The connection changed by this plug.
from Bezel::Plug
def wrap(conn: Bezel::Conn, rest: (Bezel::Conn) -> Bezel::Conn) -> Bezel::Conn
Runs this plug, then rest (the plugs after it) unless it halted.
Override it to act around the rest: its result is the request's.
from Bezel::Plug