aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-27 13:55:56 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-27 13:55:56 +0000
commitc22ebd909d9d4938616231fae96015f1da8f5620 (patch)
tree83384f67aa459cd6bfb741ad6c43ea43203a6098 /actionpack
parent5b52b716b7527855a4ac42822e1fa67a2f5bab79 (diff)
downloadrails-c22ebd909d9d4938616231fae96015f1da8f5620.tar.gz
rails-c22ebd909d9d4938616231fae96015f1da8f5620.tar.bz2
rails-c22ebd909d9d4938616231fae96015f1da8f5620.zip
Fixing the fix, but not quite
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 95ee177314..290cc28b39 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -364,6 +364,10 @@ module ActionView #:nodoc:
def delegate_render(handler, template, local_assigns)
handler.new(self).render(template, local_assigns)
end
+
+ def assign_variables_from_controller
+ @assigns.each { |key, value| instance_variable_set("@#{key}", value) }
+ end
end
end