From 94b5e57bccadbc06f13e3cf47b145e8a37dda061 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 22 Feb 2005 17:11:34 +0000 Subject: More component fun git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/components.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/components.rb') diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 8bc0b5dd10..3a8fbb97ee 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -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] }) -- cgit v1.2.3