Skip to content
This repository
Browse code

Use response_body rather than performed?

  • Loading branch information...
commit e28e0611652e4d2c4fc2e8afdf866264c1583154 1 parent 964bc4e
Yehuda Katz authored August 09, 2009
2  actionpack/lib/action_controller/base.rb
@@ -41,7 +41,7 @@ class Base < Metal
41 41
     module ImplicitRender
42 42
       def send_action(*)
43 43
         ret = super
44  
-        default_render unless performed?
  44
+        default_render unless response_body
45 45
         ret
46 46
       end
47 47
 
2  actionpack/test/template/body_parts_test.rb
@@ -4,7 +4,7 @@ class BodyPartsTest < ActionController::TestCase
4 4
   RENDERINGS = [Object.new, Object.new, Object.new]
5 5
 
6 6
   class TestController < ActionController::Base
7  
-    def performed?() true end
  7
+    def response_body() "" end
8 8
 
9 9
     def index
10 10
       RENDERINGS.each do |rendering|

0 notes on commit e28e061

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