Permalink
Browse files

More component fun

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6cea13a commit 94b5e57bccadbc06f13e3cf47b145e8a37dda061 @dhh dhh committed Feb 22, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/components.rb
@@ -32,7 +32,7 @@ def component_class(options)
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] })

0 comments on commit 94b5e57

Please sign in to comment.