module ActionDispatch::Flash::RequestMethods
Public Instance Methods
flash()
click to toggle source
Access the contents of the flash. Use flash["notice"]
to read
a notice you put there or flash["notice"] = "hello"
to put a new one.
# File lib/action_dispatch/middleware/flash.rb, line 47 def flash flash = flash_hash return flash if flash self.flash = Flash::FlashHash.from_session_value(session["flash"]) end
flash=(flash)
click to toggle source
# File lib/action_dispatch/middleware/flash.rb, line 53 def flash=(flash) set_header Flash::KEY, flash end
reset_session()
click to toggle source
Calls superclass method
# File lib/action_dispatch/middleware/flash.rb, line 76 def reset_session # :nodoc super self.flash = nil end