mirror of
https://github.com/github/rails.git
synced 2026-01-30 08:48:06 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user