aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderer/template_renderer.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-01 12:37:57 +0200
committerJosé Valim <jose.valim@gmail.com>2011-05-01 13:40:13 +0200
commit367bdc53611fe1da9cedda3220a83d3f39409cff (patch)
treef9f2fe13521d436a61d7068b7fc1b7d3e27f363e /actionpack/lib/action_view/renderer/template_renderer.rb
parent33cc001f9158463389a9c9c321de0dbdccb1df8d (diff)
downloadrails-367bdc53611fe1da9cedda3220a83d3f39409cff.tar.gz
rails-367bdc53611fe1da9cedda3220a83d3f39409cff.tar.bz2
rails-367bdc53611fe1da9cedda3220a83d3f39409cff.zip
Remove view dependency from AV::Renderer.
Diffstat (limited to 'actionpack/lib/action_view/renderer/template_renderer.rb')
-rw-r--r--actionpack/lib/action_view/renderer/template_renderer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/renderer/template_renderer.rb b/actionpack/lib/action_view/renderer/template_renderer.rb
index 471428ac9e..6c55a865a1 100644
--- a/actionpack/lib/action_view/renderer/template_renderer.rb
+++ b/actionpack/lib/action_view/renderer/template_renderer.rb
@@ -3,7 +3,9 @@ require 'active_support/core_ext/array/wrap'
module ActionView
class TemplateRenderer < AbstractRenderer #:nodoc:
- def render(options)
+ def render(context, options)
+ @view = context
+
wrap_formats(options[:template] || options[:file]) do
template = determine_template(options)
freeze_formats(template.formats, true)