aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/conversions.rb
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-10-20 16:54:43 +0200
committerAvnerCohen <israbirding@gmail.com>2012-10-20 16:54:43 +0200
commit71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b (patch)
tree54fc7a8c5569cb6e883d6a8845f0f09126717ab6 /activesupport/lib/active_support/core_ext/hash/conversions.rb
parentd4db09514cc3f18d1d157caaf0784bedf38fafe8 (diff)
downloadrails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.tar.gz
rails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.tar.bz2
rails-71c67d1fd863bfa8fa820e4dc6e1d158586d6d4b.zip
Hash Syntax changes to 1.9 format
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb
index 828f03ad62..f5e3a9b842 100644
--- a/activesupport/lib/active_support/core_ext/hash/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -131,7 +131,7 @@ class Hash
else
xml_value = Hash[value.map { |k,v| [k, typecast_xml_value(v)] }]
- # Turn { :files => { :file => #<StringIO> } } into { :files => #<StringIO> } so it is compatible with
+ # Turn { files: { file: #<StringIO> } } into { files: #<StringIO> } so it is compatible with
# how multipart uploaded files from HTML appear
xml_value['file'].is_a?(StringIO) ? xml_value['file'] : xml_value
end