diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-10 11:03:18 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-10 12:43:26 +0200 |
commit | b88f4ca93bcaef9a6bfd21d95acc8f432a3c8e5c (patch) | |
tree | 94ca53a9d78f749b18ab6b325afc54a1c991f1ca /actionpack/lib/action_view/helpers | |
parent | ab2f2b22a6d0656f719c294d40e35d21c752ba8c (diff) | |
download | rails-b88f4ca93bcaef9a6bfd21d95acc8f432a3c8e5c.tar.gz rails-b88f4ca93bcaef9a6bfd21d95acc8f432a3c8e5c.tar.bz2 rails-b88f4ca93bcaef9a6bfd21d95acc8f432a3c8e5c.zip |
Clean up the house before moving in the new furniture.
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 300207dfac..41cd8d5171 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -546,7 +546,7 @@ module ActionView end def with_formats(*args) - @context ? @context.update_details(:formats => args) { yield } : yield + @context ? @context.lookup_context.update_details(:formats => args) { yield } : yield end def javascript_object_for(object) |