Module: ActionDispatch::Flash::RequestMethods
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
::ActionCable::Connection::TestRequest ,
ActionController::TestRequest,
::ActionDispatch::Request ,
::ActionDispatch::TestRequest
| |
Defined in: | actionpack/lib/action_dispatch/middleware/flash.rb |
Instance Attribute Summary
-
#flash
rw
Access the contents of the flash.
- #flash=(flash) rw
Instance Attribute Details
#flash (rw)
Access the contents of the flash. Returns a FlashHash
.
See ::ActionDispatch::Flash
for example usage.
# File 'actionpack/lib/action_dispatch/middleware/flash.rb', line 57
def flash flash = flash_hash return flash if flash self.flash = Flash::FlashHash.from_session_value(session["flash"]) end