aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb4
1 files changed, 2 insertions, 2 deletions
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