Skip to Content Skip to Search
Methods
F

Instance Public methods

flash()

Access the contents of the flash. Returns a ActionDispatch::Flash::FlashHash.

See ActionDispatch::Flash for example usage.

# File actionpack/lib/action_dispatch/middleware/flash.rb, line 48
def flash
  flash = flash_hash
  return flash if flash
  self.flash = Flash::FlashHash.from_session_value(session["flash"])
end

flash=(flash)

# File actionpack/lib/action_dispatch/middleware/flash.rb, line 54
def flash=(flash)
  set_header Flash::KEY, flash
end