aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-22 17:11:34 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-22 17:11:34 +0000
commit94b5e57bccadbc06f13e3cf47b145e8a37dda061 (patch)
tree103310114966019214f4a21f9b5391334b0701cc /actionpack/lib
parent6cea13a30f5c22ef5cd8ad1fcd14cac6e1d54de9 (diff)
downloadrails-94b5e57bccadbc06f13e3cf47b145e8a37dda061.tar.gz
rails-94b5e57bccadbc06f13e3cf47b145e8a37dda061.tar.bz2
rails-94b5e57bccadbc06f13e3cf47b145e8a37dda061.zip
More component fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/components.rb2
1 files changed, 1 insertions, 1 deletions
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] })