Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6887

Show
Ignore:
Timestamp:
05/29/07 02:42:31 (1 year ago)
Author:
bitsweat
Message:

Correct flash discard rdoc. Closes #8502 [kampers]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/flash.rb

    r6670 r6887  
    9999      # Marks the entire flash or a single flash entry to be discarded by the end of the current action 
    100100      # 
    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 
    103103      def discard(k = nil) 
    104104        use(k)