instance method
delete
Ruby on Rails 7.0.10
Since v3.1.12Signature
delete(key)
No documentation comment.
Parameters
-
keyreq
Source
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 178
def delete(key)
key = key.to_s
@discard.delete key
@flashes.delete key
self
end
Defined in actionpack/lib/action_dispatch/middleware/flash.rb line 178
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Flash::FlashHash