Flowdock
method

use

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActionDispatch::Flash::FlashHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v4.0.2:

use(key = nil, used = true) protected

Used internally by the keep and discard methods

use()               # marks the entire flash as used
use('msg')          # marks the "msg" entry as used
use(nil, false)     # marks the entire flash as unused (keeps it around for one more action)
use('msg', false)   # marks the "msg" entry as unused (keeps it around for one more action)

Returns the single value for the key you asked to be marked (un)used or the FlashHash itself if no key is passed.

Show source
Register or log in to add new notes.