Skip to content
Browse files

require 'time'

  • Loading branch information...
1 parent 4fe6d01 commit 9c9f450e4fc0d6650be26b2391999b579771ba50 @vatrai vatrai committed May 22, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/xml_mini.rb
View
3 activesupport/lib/active_support/xml_mini.rb
@@ -1,3 +1,4 @@
+require 'time'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/string/inflections'
@@ -56,7 +57,7 @@ def content_type
PARSING = {
"symbol" => Proc.new { |symbol| symbol.to_sym },
"date" => Proc.new { |date| ::Date.parse(date) },
- "datetime" => Proc.new { |time| ::Time.xmlschema(time).utc rescue ::DateTime.parse(time).utc },
+ "datetime" => Proc.new { |time| Time.xmlschema(time).utc rescue ::DateTime.parse(time).utc },
"integer" => Proc.new { |integer| integer.to_i },
"float" => Proc.new { |float| float.to_f },
"decimal" => Proc.new { |number| BigDecimal(number) },

0 comments on commit 9c9f450

Please sign in to comment.
Something went wrong with that request. Please try again.