diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2013-09-09 12:32:39 -0300 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2013-09-09 12:33:53 -0300 |
commit | 67336ce199d4eece2f6047a13e692c356e5caa97 (patch) | |
tree | f43f02baf987902a6b23d0edd5fc8207e1df20da /actionview/lib | |
parent | a41669563b960d604068013a5b808476391b1cb9 (diff) | |
download | rails-67336ce199d4eece2f6047a13e692c356e5caa97.tar.gz rails-67336ce199d4eece2f6047a13e692c356e5caa97.tar.bz2 rails-67336ce199d4eece2f6047a13e692c356e5caa97.zip |
Remove remaining coupling with AV in MimeResponds
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb index e0486ba596..18a0788f8e 100644 --- a/actionview/lib/action_view/rendering.rb +++ b/actionview/lib/action_view/rendering.rb @@ -95,6 +95,13 @@ module ActionView private + # Assign the rendered format to lookup context. + def _process_format(format) #:nodoc: + super + lookup_context.formats = [format.to_sym] + lookup_context.rendered_format = lookup_context.formats.first + end + # Normalize args by converting render "foo" to render :action => "foo" and # render "foo/bar" to render :file => "foo/bar". # :api: private |