module ActionDispatch::Flash::RequestMethods

def flash

to put a new one.
read a notice you put there or flash["notice"] = "hello"
Access the contents of the flash. Use flash["notice"] to
def flash
  flash = flash_hash
  return flash if flash
  self.flash = Flash::FlashHash.from_session_value(session["flash"])
end