From d2eafa8b736c2f300658925e70290fb3d996959b Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 31 Jul 2006 20:32:48 +0000 Subject: Dup the options passed to map.resources so that multiple resources get the same options. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/resources.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb index b41cdf16e9..93016cbcc5 100644 --- a/actionpack/lib/action_controller/resources.rb +++ b/actionpack/lib/action_controller/resources.rb @@ -84,7 +84,7 @@ module ActionController def resources(*entities) options = entities.last.is_a?(Hash) ? entities.pop : { } - entities.each { |entity| map_resource(entity, options) { yield if block_given? } } + entities.each { |entity| map_resource(entity, options.dup) { yield if block_given? } } end private -- cgit v1.2.3