lib/time_ext.rb in time_ext-0.2.5 vs lib/time_ext.rb in time_ext-0.2.6
- old
+ new
@@ -1,7 +1,10 @@
require 'rubygems'
require 'active_support'
+# support both Active Support 2.x and 3.x
+require 'active_support/time' if !Time.respond_to?(:days_in_month)
+
require 'time_ext/calculations'
require 'time_ext/iterations'
require 'time_ext/support'
require 'time_ext/core_ext/time'
require 'time_ext/core_ext/numeric'