diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-09 03:05:04 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-09 04:12:09 -0300 |
commit | e28e0611652e4d2c4fc2e8afdf866264c1583154 (patch) | |
tree | 05170f37915e203da6063beb5eb80d4f0405dc01 /actionpack | |
parent | 964bc4e85517dbd45d86e91445b3b9aecde960d8 (diff) | |
download | rails-e28e0611652e4d2c4fc2e8afdf866264c1583154.tar.gz rails-e28e0611652e4d2c4fc2e8afdf866264c1583154.tar.bz2 rails-e28e0611652e4d2c4fc2e8afdf866264c1583154.zip |
Use response_body rather than performed?
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 | ||||
-rw-r--r-- | actionpack/test/template/body_parts_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 61f1c715c8..698189bd46 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -41,7 +41,7 @@ module ActionController module ImplicitRender def send_action(*) ret = super - default_render unless performed? + default_render unless response_body ret end diff --git a/actionpack/test/template/body_parts_test.rb b/actionpack/test/template/body_parts_test.rb index bac67c1a7d..defe85107e 100644 --- a/actionpack/test/template/body_parts_test.rb +++ b/actionpack/test/template/body_parts_test.rb @@ -4,7 +4,7 @@ class BodyPartsTest < ActionController::TestCase RENDERINGS = [Object.new, Object.new, Object.new] class TestController < ActionController::Base - def performed?() true end + def response_body() "" end def index RENDERINGS.each do |rendering| |