keep(k = nil)
public
Keeps either the entire current flash or a specific flash entry available
for the next action:
flash.keep
flash.keep(:notice)
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 188
def keep(k = nil)
@discard.subtract Array(k || keys)
k ? self[k] : self
end