diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 02:00:44 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 02:00:44 +0000 |
commit | 4defe1ac8a1689262a9a9f2c030714727f72e06e (patch) | |
tree | 3dd05013bf0a30c0a416e34d57af2146393bd20b /activesupport/lib | |
parent | 1fd9a46d713a4b314621bd7cf171bd048b10741f (diff) | |
download | rails-4defe1ac8a1689262a9a9f2c030714727f72e06e.tar.gz rails-4defe1ac8a1689262a9a9f2c030714727f72e06e.tar.bz2 rails-4defe1ac8a1689262a9a9f2c030714727f72e06e.zip |
More compatible Hash.create_from_xml. Closes #5523.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb index ac4a612e49..1e7f8eb68d 100644 --- a/activesupport/lib/active_support/core_ext/hash/conversions.rb +++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb @@ -113,6 +113,8 @@ module ActiveSupport #:nodoc: when 1 then value.first else value end + when "String" + value else raise "can't typecast #{value.inspect}" end |