diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 12:36:15 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 12:54:19 -0700 |
commit | 487312515c09c5dbc7306329805f2eebfed1d630 (patch) | |
tree | 01ae223182a4be991cb7f58bf69c17c02e47fe19 | |
parent | 4fad953f90f82e860a69d67745887b40d5b15475 (diff) | |
download | rails-487312515c09c5dbc7306329805f2eebfed1d630.tar.gz rails-487312515c09c5dbc7306329805f2eebfed1d630.tar.bz2 rails-487312515c09c5dbc7306329805f2eebfed1d630.zip |
RJS doesn't render with an HTML layout by default
-rw-r--r-- | actionpack/lib/action_controller/base/compatibility.rb | 1 | ||||
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/base/compatibility.rb b/actionpack/lib/action_controller/base/compatibility.rb index 085db284e4..cd4b72b1c6 100644 --- a/actionpack/lib/action_controller/base/compatibility.rb +++ b/actionpack/lib/action_controller/base/compatibility.rb @@ -124,6 +124,7 @@ module ActionController super rescue ActionView::MissingTemplate _find_by_parts(_layout({}), {}) + nil end def performed? diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 04d6c4173a..c9994ee013 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -375,11 +375,9 @@ class MimeControllerTest < ActionController::TestCase end def test_rjs_type_skips_layout - pending(:new_base) do - @request.accept = "text/javascript" - get :all_types_with_layout - assert_equal 'RJS for all_types_with_layout', @response.body - end + @request.accept = "text/javascript" + get :all_types_with_layout + assert_equal 'RJS for all_types_with_layout', @response.body end def test_html_type_with_layout |