diff --git a/actionpack/lib/action_controller/flash.rb b/actionpack/lib/action_controller/flash.rb index 534c74745e3a14d6fda4c76eb171e58d053946b5..ac38b46f68325ad495e5c845889b895134f472a9 100644 --- a/actionpack/lib/action_controller/flash.rb +++ b/actionpack/lib/action_controller/flash.rb @@ -98,8 +98,8 @@ def keep(k = nil) # Marks the entire flash or a single flash entry to be discarded by the end of the current action # - # flash.keep # keep entire flash available for the next action - # flash.discard(:warning) # discard the "warning" entry (it'll still be available for 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 def discard(k = nil) use(k) end