From eb1d78189ef8e987d4eb829a4eaa53cb7a3771da Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 29 Aug 2006 00:20:18 +0000 Subject: Reload should take options for the replace git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/prototype_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 531ff0b2ed..115b70d7b0 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -783,8 +783,8 @@ module ActionView call 'replace', @generator.send(:render, *options_for_render) end - def reload - replace :partial => @id.to_s + def reload(options_for_replace = {}) + replace(options_for_replace.merge({ :partial => @id.to_s })) end end -- cgit v1.2.3