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

Changeset 4540

Show
Ignore:
Timestamp:
07/05/06 01:14:53 (2 years ago)
Author:
david
Message:

Fixed that the flash should be reset when reset_session is called (closes #5584) [shugo@ruby-lang.org]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4537 r4540  
    11*SVN* 
     2 
     3* Fixed that the flash should be reset when reset_session is called #5584 [shugo@ruby-lang.org] 
    24 
    35* Added special case for "1 Byte" in NumberHelper#number_to_human_size #5593 [murpyh@rubychan.de] 
  • trunk/actionpack/lib/action_controller/flash.rb

    r4312 r4540  
    3131        alias_method_chain :assign_shortcuts, :flash 
    3232        alias_method_chain :process_cleanup, :flash 
     33        alias_method_chain :reset_session, :flash 
    3334      end 
    3435    end 
     
    144145        process_cleanup_without_flash 
    145146      end 
     147 
     148      def reset_session_with_flash 
     149        reset_session_without_flash 
     150        @flash = nil 
     151      end 
    146152       
    147153      protected