diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-07-31 20:32:48 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-07-31 20:32:48 +0000 |
commit | d2eafa8b736c2f300658925e70290fb3d996959b (patch) | |
tree | f9731c6cfea3caba236a2ae7fcebeb2e58b9d49b /actionpack/lib/action_controller | |
parent | ed4c295c4782b534121b04a6bc10b9f440ffa8c6 (diff) | |
download | rails-d2eafa8b736c2f300658925e70290fb3d996959b.tar.gz rails-d2eafa8b736c2f300658925e70290fb3d996959b.tar.bz2 rails-d2eafa8b736c2f300658925e70290fb3d996959b.zip |
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
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/resources.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |