Skip to content
This repository
Browse code

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 Kemper authored May 29, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  actionpack/lib/action_controller/flash.rb
4  actionpack/lib/action_controller/flash.rb
@@ -98,8 +98,8 @@ def keep(k = nil)
98 98
     
99 99
       # Marks the entire flash or a single flash entry to be discarded by the end of the current action
100 100
       #
101  
-      #     flash.keep                 # keep entire flash available for the next action
102  
-      #     flash.discard(:warning)    # discard the "warning" entry (it'll still be available for the current action)
  101
+      #     flash.discard              # discard the entire flash at the end of the current action
  102
+      #     flash.discard(:warning)    # discard only the "warning" entry at the end of the current action
103 103
       def discard(k = nil)
104 104
         use(k)
105 105
       end

0 notes on commit d3017e2

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