Skip to content
Browse files

Correct flash discard rdoc. Closes #8502 [kampers]

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent af2ebb2 commit d3017e225fdc2b3be0905ca0d525d190da0edc91 @jeremy jeremy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/flash.rb
4 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)

0 comments on commit d3017e2

Please sign in to comment.
Something went wrong with that request. Please try again.