<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,7 +28,6 @@ module ActionController #:nodoc:
       base.class_eval do
         include InstanceMethods
         alias_method_chain :assign_shortcuts, :flash
-        alias_method_chain :process_cleanup,  :flash
         alias_method_chain :reset_session,    :flash
       end
     end
@@ -166,11 +165,7 @@ module ActionController #:nodoc:
         def assign_shortcuts_with_flash(request, response) #:nodoc:
           assign_shortcuts_without_flash(request, response)
           flash(:refresh)
-        end
-    
-        def process_cleanup_with_flash
-          flash.sweep if @_session
-          process_cleanup_without_flash
+          flash.sweep if @_session &amp;&amp; !component_request?
         end
     end
   end</diff>
      <filename>actionpack/lib/action_controller/flash.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,6 +12,11 @@ class TestTest &lt; Test::Unit::TestCase
       render :text =&gt; 'ignore me'
     end
 
+    def set_flash_now
+      flash.now[&quot;test_now&quot;] = &quot;&gt;#{flash[&quot;test_now&quot;]}&lt;&quot;
+      render :text =&gt; 'ignore me'
+    end
+
     def set_session
       session['string'] = 'A wonder'
       session[:symbol] = 'it works'
@@ -145,6 +150,11 @@ XML
     assert_equal '&gt;value&lt;', flash['test']
   end
 
+  def test_process_with_flash_now
+    process :set_flash_now, nil, nil, { &quot;test_now&quot; =&gt; &quot;value_now&quot; }
+    assert_equal '&gt;value_now&lt;', flash['test_now']
+  end
+
   def test_process_with_session
     process :set_session
     assert_equal 'A wonder', session['string'], &quot;A value stored in the session should be available by string key&quot;</diff>
      <filename>actionpack/test/controller/test_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a7ea06b4ebe252e258f83e7de945b4baa30ec3bc</id>
    </parent>
  </parents>
  <author>
    <name>Andreas Neuhaus</name>
    <email>zargony@zargony.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/74eed6290e63111d1aad2b181692a84f4f040aea</url>
  <id>74eed6290e63111d1aad2b181692a84f4f040aea</id>
  <committed-date>2008-05-10T23:30:10-07:00</committed-date>
  <authored-date>2008-05-10T08:54:09-07:00</authored-date>
  <message>Fixed flash.now not being accessible in tests. Flash sweeping is now done before action processing instead after

Signed-off-by: Michael Koziarski &lt;michael@koziarski.com&gt;

[#10 state:resolved]</message>
  <tree>c135f4062dce31d8dabf39753f1a1256f4776d16</tree>
  <committer>
    <name>Michael Koziarski</name>
    <email>michael@koziarski.com</email>
  </committer>
</commit>
