From d95acde394118295d4c51393e4a1916204607e30 Mon Sep 17 00:00:00 2001 From: Matthew Windwer Date: Fri, 9 May 2008 16:23:48 -0600 Subject: [PATCH] Fix so parts don't modify original controller params --- merb-parts/lib/merb-parts/part_controller.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/merb-parts/lib/merb-parts/part_controller.rb b/merb-parts/lib/merb-parts/part_controller.rb index ed29e02..13bf179 100644 --- a/merb-parts/lib/merb-parts/part_controller.rb +++ b/merb-parts/lib/merb-parts/part_controller.rb @@ -50,7 +50,7 @@ module Merb # opts:: Additional options for this part. def initialize(web_controller, opts = {}) @web_controller = web_controller - @params = @web_controller.params + @params = @web_controller.params.dup @params.merge!(opts) unless opts.empty? super @content_type = @web_controller.content_type -- 1.5.4.5