Reload should take options for the replace

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-08-29 00:20:18 +00:00
parent d164d09649
commit eb1d78189e

View File

@@ -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