This project is archived and is in readonly mode.
ActiveSupport::CoreExtensions::Array::Conversions#to_xml modifies the passed option hash
-
ThePhred
This same issue happened before but was fixed and now has cropped up again. The old ticket is here: http://dev.rubyonrails.org/ticket/8017
-
ThePhred
Also note that in the SomeController example above, if you freeze the hash before you set it to the constant TO_XML_OPTIONS_HASH, you will get a TypeEror: can't modify frozen hash.
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.