aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/compatibility.rb1
-rw-r--r--actionpack/test/controller/new_base/render_template_test.rb22
2 files changed, 0 insertions, 23 deletions
diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb
index 1c205d7c02..a9e46f9343 100644
--- a/actionpack/lib/action_controller/metal/compatibility.rb
+++ b/actionpack/lib/action_controller/metal/compatibility.rb
@@ -21,7 +21,6 @@ module ActionController
end
def render_to_body(options)
- options[:template].sub!(/^\//, '') if options.key?(:template)
super || " "
end
diff --git a/actionpack/test/controller/new_base/render_template_test.rb b/actionpack/test/controller/new_base/render_template_test.rb
index ade204c387..88f8cc0d6e 100644
--- a/actionpack/test/controller/new_base/render_template_test.rb
+++ b/actionpack/test/controller/new_base/render_template_test.rb
@@ -201,26 +201,4 @@ module RenderTemplate
assert_status 200
end
end
-
- module Compatibility
- class WithoutLayoutController < ActionController::Base
- self.view_paths = [ActionView::FixtureResolver.new(
- "test/basic.html.erb" => "Hello from basic.html.erb",
- "shared.html.erb" => "Elastica"
- )]
-
- def with_forward_slash
- render :template => "/test/basic"
- end
- end
-
- class TestTemplateRenderWithForwardSlash < Rack::TestCase
- test "rendering a normal template with full path starting with a leading slash" do
- get "/render_template/compatibility/without_layout/with_forward_slash"
-
- assert_body "Hello from basic.html.erb"
- assert_status 200
- end
- end
- end
end