Permalink
Browse files

Reload should take options for the replace

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d164d09 commit eb1d78189ef8e987d4eb829a4eaa53cb7a3771da @dhh dhh committed Aug 29, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -783,8 +783,8 @@ def replace(*options_for_render)
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

0 comments on commit eb1d781

Please sign in to comment.