aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-03-25 20:08:13 +0100
committerXavier Noria <fxn@hashref.com>2011-04-13 13:23:17 +0200
commiteea66892c80d51c1b959171c2e3feac67124aaba (patch)
treeeefef7da55fee3ec886376968167a500da479c82 /actionpack/lib/action_controller
parent25181cafee9ef087a14b5134b9fa1f85f758705a (diff)
downloadrails-eea66892c80d51c1b959171c2e3feac67124aaba.tar.gz
rails-eea66892c80d51c1b959171c2e3feac67124aaba.tar.bz2
rails-eea66892c80d51c1b959171c2e3feac67124aaba.zip
removes support for render :update
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/renderers.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/metal/renderers.rb b/actionpack/lib/action_controller/metal/renderers.rb
index 38711c8462..dfda6618e7 100644
--- a/actionpack/lib/action_controller/metal/renderers.rb
+++ b/actionpack/lib/action_controller/metal/renderers.rb
@@ -41,7 +41,7 @@ module ActionController
end
# Hash of available renderers, mapping a renderer name to its proc.
- # Default keys are :json, :js, :xml and :update.
+ # Default keys are :json, :js, :xml.
RENDERERS = {}
# Adds a new renderer to call within controller actions.
@@ -107,12 +107,5 @@ module ActionController
self.content_type ||= Mime::XML
self.response_body = xml.respond_to?(:to_xml) ? xml.to_xml(options) : xml
end
-
- add :update do |proc, options|
- view_context = self.view_context
- generator = ActionView::Helpers::PrototypeHelper::JavaScriptGenerator.new(view_context, &proc)
- self.content_type = Mime::JS
- self.response_body = generator.to_s
- end
end
end