Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct flash discard rdoc. Closes #8502 [kampers]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit d3017e225fdc2b3be0905ca0d525d190da0edc91 1 parent af2ebb2
@jeremy jeremy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/flash.rb
View
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)
use(k)
end
Please sign in to comment.
Something went wrong with that request. Please try again.