diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-09-24 01:37:45 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-09-24 01:37:45 +0000 |
commit | 83d972e365963f44e4b1dd100a7c9c55a77e6d41 (patch) | |
tree | eec5c65126e065f743b4c787795122ef135a43b5 /activerecord/lib | |
parent | 8d809e724ac3e5ebc7f35e40f95632c853c68d89 (diff) | |
download | rails-83d972e365963f44e4b1dd100a7c9c55a77e6d41.tar.gz rails-83d972e365963f44e4b1dd100a7c9c55a77e6d41.tar.bz2 rails-83d972e365963f44e4b1dd100a7c9c55a77e6d41.zip |
Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/xml_serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/xml_serialization.rb b/activerecord/lib/active_record/xml_serialization.rb index 54d024fc89..78a3a2193c 100644 --- a/activerecord/lib/active_record/xml_serialization.rb +++ b/activerecord/lib/active_record/xml_serialization.rb @@ -112,7 +112,7 @@ module ActiveRecord #:nodoc: attr_reader :options def initialize(record, options = {}) - @record, @options = record, options + @record, @options = record, options.dup end def builder |