instance method
flash
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
flash()
Access the contents of the flash. Returns a ActionDispatch::Flash::FlashHash.
See ActionDispatch::Flash for example usage.
Source
# 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
Defined in actionpack/lib/action_dispatch/middleware/flash.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Flash::RequestMethods