mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
More component fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
6cea13a30f
commit
94b5e57bcc
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module ActionController #:nodoc:
|
|||
end
|
||||
|
||||
def request_for_component(options)
|
||||
request_for_component = Marshal::load(Marshal::dump(@request))
|
||||
request_for_component = @request.dup
|
||||
request_for_component.send(
|
||||
:instance_variable_set, :@parameters,
|
||||
(options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action] })
|
||||
|
|
Loading…
Reference in a new issue