diff options
author | Xavier Noria <fxn@hashref.com> | 2011-03-25 20:08:13 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-04-13 13:23:17 +0200 |
commit | eea66892c80d51c1b959171c2e3feac67124aaba (patch) | |
tree | eefef7da55fee3ec886376968167a500da479c82 /actionpack/lib/action_controller | |
parent | 25181cafee9ef087a14b5134b9fa1f85f758705a (diff) | |
download | rails-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.rb | 9 |
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 |