aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_other_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/render_other_test.rb')
-rw-r--r--actionpack/test/controller/render_other_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_other_test.rb b/actionpack/test/controller/render_other_test.rb
index ddbdd2d213..3c52b7036d 100644
--- a/actionpack/test/controller/render_other_test.rb
+++ b/actionpack/test/controller/render_other_test.rb
@@ -103,6 +103,14 @@ class TestController < ActionController::Base
end
private
+ def default_render
+ if @alternate_default_render
+ @alternate_default_render.call
+ else
+ super
+ end
+ end
+
def determine_layout
case action_name
when "render_js_with_explicit_template",