mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use response_body rather than performed?
This commit is contained in:
@@ -41,7 +41,7 @@ module ActionController
|
||||
module ImplicitRender
|
||||
def send_action(*)
|
||||
ret = super
|
||||
default_render unless performed?
|
||||
default_render unless response_body
|
||||
ret
|
||||
end
|
||||
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user