aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-05-22 17:16:23 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-05-22 17:16:23 +0530
commit9c9f450e4fc0d6650be26b2391999b579771ba50 (patch)
treefef1c6c7b4828a33f7cb3352c4fbfa1c89c6983c /activesupport/lib
parent4fe6d01a3b3bd9fc8b3c443f4e8f8b486203bb08 (diff)
downloadrails-9c9f450e4fc0d6650be26b2391999b579771ba50.tar.gz
rails-9c9f450e4fc0d6650be26b2391999b579771ba50.tar.bz2
rails-9c9f450e4fc0d6650be26b2391999b579771ba50.zip
require 'time'
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/xml_mini.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb
index 78c78015d2..1ea9a9d7e1 100644
--- a/activesupport/lib/active_support/xml_mini.rb
+++ b/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 @@ module ActiveSupport
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) },