aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-18 16:00:20 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-18 16:00:20 -0500
commitd2ccb852d4e1f6f1b01e43f32213053ae3bef408 (patch)
tree4923c27ea8714849ea40a85e7ed21fc761f87a53 /actionpack/lib/action_view/base.rb
parentef6f6625c91ea789a033799f649e4388e4a71045 (diff)
downloadrails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.tar.gz
rails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.tar.bz2
rails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.zip
Removed lagacy TemplateHandler#render API. Left in a legacy TemplateHandler and Compilable stub so plugins will not have to change anything.
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index a6872b1a47..ae6b284854 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -379,8 +379,8 @@ module ActionView #:nodoc:
@assigns.each { |key, value| instance_variable_set("@#{key}", value) }
end
- def execute(template, local_assigns = {})
- send(template.method(local_assigns), local_assigns) do |*names|
+ def execute(method, local_assigns = {})
+ send(method, local_assigns) do |*names|
instance_variable_get "@content_for_#{names.first || 'layout'}"
end
end