diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 3 | ||||
-rw-r--r-- | actionpack/lib/action_view/renderer/renderer.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/render_test.rb | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 5b45a13269..1395db3dc1 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -1,6 +1,7 @@ require "abstract_controller/base" require "action_view" require "active_support/core_ext/object/instance_variables" +require "active_support/hash_with_indifferent_access" module AbstractController class DoubleRenderError < Error @@ -138,7 +139,7 @@ module AbstractController end # Normalize args by converting render "foo" to render :action => "foo" and - # render "foo/bar" to render :file => "foo/bar". + # render "foo/bar" to render :app_template_file => "foo/bar". # :api: plugin def _normalize_args(action=nil, options={}) case action diff --git a/actionpack/lib/action_view/renderer/renderer.rb b/actionpack/lib/action_view/renderer/renderer.rb index 0f359899d6..5d783fe394 100644 --- a/actionpack/lib/action_view/renderer/renderer.rb +++ b/actionpack/lib/action_view/renderer/renderer.rb @@ -1,3 +1,5 @@ +require 'active_support/hash_with_indifferent_access' + module ActionView # This is the main entry point for rendering. It basically delegates # to other objects like TemplateRenderer and PartialRenderer which diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index de80b78272..7e62cb73dd 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -1693,7 +1693,7 @@ class MetalRenderWithoutAVTest < ActionController::TestCase def test_dynamic_params_render e = assert_raises ArgumentError do - get :dynamic_params_render, { inline: '<%= RUBY_VERSION %>' } + get :dynamic_params_render, { :inline => '<%= RUBY_VERSION %>' } end assert_equal "render parameters are not permitted", e.message end |