From 9bbd974a75e50ef514b04f4b900076275713bbbc Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 28 Sep 2010 19:15:39 +0300 Subject: [PATCH] fixed compatibility with Active Support 3.x --- lib/time_ext.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/time_ext.rb b/lib/time_ext.rb index 0b59b37..3544f1e 100644 --- a/lib/time_ext.rb +++ b/lib/time_ext.rb @@ -1,6 +1,9 @@ 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'