Permalink
Browse files

gsub("xml", "XML")

  • Loading branch information...
1 parent 0b58004 commit 43d0200d94b7d66cee9ef3d20c376e03f30b1b60 @fxn fxn committed May 19, 2008
View
2 actionpack/lib/action_controller/mime_type.rb
@@ -104,7 +104,7 @@ def parse(accept_header)
list[text_xml].name = Mime::XML.to_s
end
- # Look for more specific xml-based types and sort them ahead of app/xml
+ # Look for more specific XML-based types and sort them ahead of app/xml
if app_xml
idx = app_xml
View
2 activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -212,7 +212,7 @@ def typecast_xml_value(value)
nil
# If the type is the only element which makes it then
# this still makes the value nil, except if type is
- # a xml node(where type['value'] is a Hash)
+ # a XML node(where type['value'] is a Hash)
elsif value['type'] && value.size == 1 && !value['type'].is_a?(::Hash)
nil
else

0 comments on commit 43d0200

Please sign in to comment.