1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

removes render :update from views

This commit is contained in:
Xavier Noria 2011-03-26 22:33:44 +01:00
parent 90de26703e
commit 7c9d91f53e
2 changed files with 0 additions and 7 deletions

View file

@ -6,7 +6,6 @@ module ActionView
# Returns the result of a render that's dictated by the options hash. The primary options are: # Returns the result of a render that's dictated by the options hash. The primary options are:
# #
# * <tt>:partial</tt> - See ActionView::Partials. # * <tt>:partial</tt> - See ActionView::Partials.
# * <tt>:update</tt> - Calls update_page with the block given.
# * <tt>:file</tt> - Renders an explicit template file (this used to be the old default), add :locals to pass in those. # * <tt>:file</tt> - Renders an explicit template file (this used to be the old default), add :locals to pass in those.
# * <tt>:inline</tt> - Renders an inline template similar to how it's done in the controller. # * <tt>:inline</tt> - Renders an inline template similar to how it's done in the controller.
# * <tt>:text</tt> - Renders the text passed in out. # * <tt>:text</tt> - Renders the text passed in out.
@ -26,8 +25,6 @@ module ActionView
else else
_render_template(options) _render_template(options)
end end
when :update
update_page(&block)
else else
_render_partial(:partial => options, :locals => locals) _render_partial(:partial => options, :locals => locals)
end end

View file

@ -68,10 +68,6 @@ module RenderTestCases
assert_equal "The secret is in the sauce\n", @view.render(:file => "test/dot.directory/render_file_with_ivar") assert_equal "The secret is in the sauce\n", @view.render(:file => "test/dot.directory/render_file_with_ivar")
end end
def test_render_update
assert_equal 'alert("Hello, World!");', @view.render(:update) { |page| page.alert('Hello, World!') }
end
def test_render_partial_from_default def test_render_partial_from_default
assert_equal "only partial", @view.render("test/partial_only") assert_equal "only partial", @view.render("test/partial_only")
end end