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