aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-08-29 00:20:18 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-08-29 00:20:18 +0000
commiteb1d78189ef8e987d4eb829a4eaa53cb7a3771da (patch)
tree9bf10fc9b6eff7aad7080baa94764579d12c6dd7 /actionpack/lib/action_view
parentd164d09649c45bc9478e6ac52787e648a14317cc (diff)
downloadrails-eb1d78189ef8e987d4eb829a4eaa53cb7a3771da.tar.gz
rails-eb1d78189ef8e987d4eb829a4eaa53cb7a3771da.tar.bz2
rails-eb1d78189ef8e987d4eb829a4eaa53cb7a3771da.zip
Reload should take options for the replace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-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