public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Fix so parts don't modify original controller params

Signed-off-by: Michael S. Klishin <michael@novemberain.com>
Matthew Windwer (author)
Fri May 09 15:23:48 -0700 2008
michaelklishin (committer)
Fri May 09 17:43:56 -0700 2008
commit  f70ea831e25a8f20bd286df58eedb19762521ac0
tree    de33526a820ecc3110e7a03eece4d253f0fbee97
parent  12957a0940eb0b7cb252b5606fb7c5220388d6cb
...
50
51
52
53
 
54
55
56
...
50
51
52
 
53
54
55
56
0
@@ -50,7 +50,7 @@ module Merb
0
     # opts<Hash>:: Additional options for this part.
0
     def initialize(web_controller, opts = {})
0
       @web_controller = web_controller
0
- @params = @web_controller.params
0
+ @params = @web_controller.params.dup
0
       @params.merge!(opts) unless opts.empty?
0
       super
0
       @content_type = @web_controller.content_type

Comments

    No one has commented yet.