Flowdock
method

discard

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActionController::Flash::FlashHash
discard(k = nil) public

Marks the entire flash or a single flash entry to be discarded by the end of the current action:

    flash.discard              # discard the entire flash at the end of the current action
    flash.discard(:warning)    # discard only the "warning" entry at the end of the current action
Show source
Register or log in to add new notes.